mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Fix handling of 'no chunk readers' in AVI
Before this change the chunk readers array was accessed out of bounds in files for which no chunk readers are created. PiperOrigin-RevId: 704323919
This commit is contained in:
parent
1f6c795407
commit
fc3f096888
1 changed files with 5 additions and 1 deletions
|
|
@ -419,7 +419,11 @@ public final class AviExtractor implements Extractor {
|
|||
chunkReader.compactIndex();
|
||||
}
|
||||
seekMapHasBeenOutput = true;
|
||||
extractorOutput.seekMap(new AviSeekMap(durationUs));
|
||||
if (chunkReaders.length == 0) {
|
||||
extractorOutput.seekMap(new SeekMap.Unseekable(durationUs));
|
||||
} else {
|
||||
extractorOutput.seekMap(new AviSeekMap(durationUs));
|
||||
}
|
||||
}
|
||||
|
||||
private long peekSeekOffset(ParsableByteArray idx1Body) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue