diff options
author | Matthew Hoops | 2011-05-11 14:48:13 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-05-11 14:48:13 -0400 |
commit | d2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00 (patch) | |
tree | 09f496f57434e2ef9acacfc8a6ef21b50d29bddc /audio/decoders | |
parent | a1d41da096c0bcf502a85919cb1cb1ee471719c5 (diff) | |
download | scummvm-rg350-d2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00.tar.gz scummvm-rg350-d2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00.tar.bz2 scummvm-rg350-d2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00.zip |
AUDIO: Fix usage of Timestamp::convertToFramerate
Diffstat (limited to 'audio/decoders')
-rw-r--r-- | audio/decoders/quicktime.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/decoders/quicktime.cpp b/audio/decoders/quicktime.cpp index f82dc05b7c..e80c2b592c 100644 --- a/audio/decoders/quicktime.cpp +++ b/audio/decoders/quicktime.cpp @@ -304,8 +304,7 @@ void QuickTimeAudioDecoder::setAudioStreamPos(const Timestamp &where) { _audStream = Audio::makeQueuingAudioStream(entry->sampleRate, entry->channels == 2); // First, we need to track down what audio sample we need - Audio::Timestamp curAudioTime = where; - curAudioTime.convertToFramerate(_streams[_audioStreamIndex]->time_scale); + Audio::Timestamp curAudioTime = where.convertToFramerate(_streams[_audioStreamIndex]->time_scale); uint32 sample = curAudioTime.totalNumberOfFrames() / entry->channels; uint32 seekSample = sample; |