mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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
72ba736a7f
commit
8e0bf6cd2f
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
||||||
}
|
}
|
||||||
if (format == null) {
|
if (format == null) {
|
||||||
// We don't have a format yet, so try and read one.
|
// We don't have a format yet, so try and read one.
|
||||||
buffer.clear();
|
flagsOnlyBuffer.clear();
|
||||||
int result = readSource(formatHolder, flagsOnlyBuffer, true);
|
int result = readSource(formatHolder, flagsOnlyBuffer, true);
|
||||||
if (result == C.RESULT_FORMAT_READ) {
|
if (result == C.RESULT_FORMAT_READ) {
|
||||||
onInputFormatChanged(formatHolder.format);
|
onInputFormatChanged(formatHolder.format);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue