Avoid Clearing Supplemental Data Flag In MatroskExtractor

PiperOrigin-RevId: 429368911
This commit is contained in:
olly 2022-02-17 20:04:49 +00:00 committed by Ian Baker
parent bdcc9ea163
commit e32809cf08

View file

@ -1419,7 +1419,7 @@ public class MatroskaExtractor implements Extractor {
if (blockSampleCount > 1) { if (blockSampleCount > 1) {
// There were multiple samples in the block. Appending the additional data to the last // There were multiple samples in the block. Appending the additional data to the last
// sample doesn't make sense. Skip instead. // sample doesn't make sense. Skip instead.
flags &= ~C.BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA; supplementalData.reset(/* limit= */ 0);
} else { } else {
// Append supplemental data. // Append supplemental data.
int supplementalDataSize = supplementalData.limit(); int supplementalDataSize = supplementalData.limit();