diff options
-rw-r--r-- | video/qt_decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/qt_decoder.cpp b/video/qt_decoder.cpp index c855360e2b..77b2ed7061 100644 --- a/video/qt_decoder.cpp +++ b/video/qt_decoder.cpp @@ -209,7 +209,7 @@ void QuickTimeDecoder::seekToFrame(uint32 frame) { // Now to track down what chunk it's in _curAudioChunk = 0; uint32 totalSamples = 0; - for (uint32 i = 0; i < _streams[_audioStreamIndex]->sample_to_chunk_sz; i++, _curAudioChunk++) { + for (uint32 i = 0; i < _streams[_audioStreamIndex]->chunk_count; i++, _curAudioChunk++) { int sampleToChunkIndex = -1; for (uint32 j = 0; j < _streams[_audioStreamIndex]->sample_to_chunk_sz; j++) |