Commit 0b096106 by kimvde Committed by Tianyi Feng

Fix handling of non-empty decoder end-of-stream output buffer

PiperOrigin-RevId: 520027236
parent 93085e2c
......@@ -347,6 +347,7 @@ public final class DefaultCodec implements Codec {
releaseOutputBuffer(/* render= */ false);
return false;
}
outputBufferInfo.flags &= ~MediaCodec.BUFFER_FLAG_END_OF_STREAM;
}
if ((outputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {
// Encountered a CSD buffer, skip it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment