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:
Jean-Yves Avenard 2015-09-16 11:54:56 +10:00
parent eae90aa5d0
commit 109cc12636

View File

@ -177,7 +177,7 @@ status_t SampleIterator::findChunkRange(uint32_t sampleIndex) {
mStopChunkSampleIndex =
mFirstChunkSampleIndex
+ (mStopChunk - mFirstChunk) * mSamplesPerChunk;
} else {
} else if (mSamplesPerChunk) {
mStopChunk = 0xffffffff;
mStopChunkSampleIndex = 0xffffffff;
}