mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Treat empty stss boxes as absent
ISSUE: #1681 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=128071668
This commit is contained in:
parent
05187ad519
commit
98c5b2b8d0
1 changed files with 6 additions and 1 deletions
|
|
@ -153,7 +153,12 @@ import java.util.List;
|
|||
if (stss != null) {
|
||||
stss.setPosition(Atom.FULL_HEADER_SIZE);
|
||||
remainingSynchronizationSamples = stss.readUnsignedIntToInt();
|
||||
nextSynchronizationSampleIndex = stss.readUnsignedIntToInt() - 1;
|
||||
if (remainingSynchronizationSamples > 0) {
|
||||
nextSynchronizationSampleIndex = stss.readUnsignedIntToInt() - 1;
|
||||
} else {
|
||||
// Ignore empty stss boxes, which causes all samples to be treated as sync samples.
|
||||
stss = null;
|
||||
}
|
||||
}
|
||||
|
||||
// True if we can rechunk fixed-sample-size data. Note that we only rechunk raw audio.
|
||||
|
|
|
|||
Loading…
Reference in a new issue