public int available() {
		if (mBuffer != null) 
			return mBufferInfo.size - mBuffer.position();
		else 
			return 0;
	}
An InputStream that uses data from a MediaCodec.
The purpose of this class is to interface existing RTP packetizers of
libstreaming with the new MediaCodec API. This class is not thread safe !
src/net/majorkernelpanic/streaming/rtp/MediaCodecInputStream.java