public void releaseFrame(FrameInfo frameInfo) {
        mCodec.releaseOutputBuffer(frameInfo.buffer, false);
        releaseFrameInfo(frameInfo);
    }
Releases a frame and all its associated resources.
When overwritten, this method must release the output buffer through
{@link MediaCodec#releaseOutputBuffer(int, boolean)} or {@link MediaCodec#releaseOutputBuffer(int, long)},
and then release the frame info through {@link #releaseFrameInfo(FrameInfo)}.

@param frameInfo information about the current frame
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaCodecDecoder.java