public void releaseFrame(FrameInfo frameInfo, boolean render) {
        getCodec().releaseOutputBuffer(frameInfo.buffer, render); // render picture
        releaseFrameInfo(frameInfo);
    }
Releases all data belonging to a frame and optionally renders it to the configured surface.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaCodecVideoDecoder.java