mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix handling of non-empty decoder end-of-stream output buffer
PiperOrigin-RevId: 520027236
This commit is contained in:
parent
7e6236cfdb
commit
24a164827e
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue