mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Clear the correct buffer in MediaCodecRenderer
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=156131086
This commit is contained in:
parent
a4a3154604
commit
fb3c190556
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||
}
|
||||
if (format == null) {
|
||||
// We don't have a format yet, so try and read one.
|
||||
buffer.clear();
|
||||
flagsOnlyBuffer.clear();
|
||||
int result = readSource(formatHolder, flagsOnlyBuffer, true);
|
||||
if (result == C.RESULT_FORMAT_READ) {
|
||||
onInputFormatChanged(formatHolder.format);
|
||||
|
|
|
|||
Loading…
Reference in a new issue