Use frame drop hack to reduce latency and micro-stuttering for now

This commit is contained in:
Cameron Gutman
2018-02-04 12:59:04 -08:00
parent 82387d23f8
commit c797318ece
2 changed files with 27 additions and 2 deletions

View File

@@ -410,7 +410,7 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer {
}
// Render the last buffer
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && prefs.disableFrameDrop) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
// Use a PTS that will cause this frame to never be dropped if frame dropping
// is disabled
videoDecoder.releaseOutputBuffer(lastIndex, 0);