Commit 8e0bf6cd by olly Committed by Oliver Woodman

Clear the correct buffer in MediaCodecRenderer

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=156131086
parent 72ba736a
......@@ -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);
......
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