mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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);
|
releaseOutputBuffer(/* render= */ false);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
outputBufferInfo.flags &= ~MediaCodec.BUFFER_FLAG_END_OF_STREAM;
|
||||||
}
|
}
|
||||||
if ((outputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {
|
if ((outputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {
|
||||||
// Encountered a CSD buffer, skip it.
|
// Encountered a CSD buffer, skip it.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue