mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1189992: Don't assume the last chunk always contains the sample we're looking for. r=gerald
If a chunk contains no samples it should be skipped and continue the search (and maybe hit EOS)
This commit is contained in:
parent
eae90aa5d0
commit
109cc12636
@ -177,7 +177,7 @@ status_t SampleIterator::findChunkRange(uint32_t sampleIndex) {
|
||||
mStopChunkSampleIndex =
|
||||
mFirstChunkSampleIndex
|
||||
+ (mStopChunk - mFirstChunk) * mSamplesPerChunk;
|
||||
} else {
|
||||
} else if (mSamplesPerChunk) {
|
||||
mStopChunk = 0xffffffff;
|
||||
mStopChunkSampleIndex = 0xffffffff;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user