private void packageH264Keyframe ( ByteBuffer encodedData , MediaCodec . BufferInfo bufferInfo ) { mH264Keyframe . position ( mH264MetaSize ) ; mH264Keyframe . put ( encodedData ) ; // BufferOverflow }
Adds the SPS + PPS data to the ByteBuffer containing a h264 keyframe