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

PiperOrigin-RevId: 520027236
This commit is contained in:
kimvde 2023-03-28 14:54:03 +00:00 committed by Tianyi Feng
parent 7e6236cfdb
commit 24a164827e

View file

@ -349,6 +349,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.