aboutsummaryrefslogtreecommitdiff
path: root/audio/decoders/quicktime.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-05-11 14:48:13 -0400
committerMatthew Hoops2011-05-11 14:48:13 -0400
commitd2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00 (patch)
tree09f496f57434e2ef9acacfc8a6ef21b50d29bddc /audio/decoders/quicktime.cpp
parenta1d41da096c0bcf502a85919cb1cb1ee471719c5 (diff)
downloadscummvm-rg350-d2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00.tar.gz
scummvm-rg350-d2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00.tar.bz2
scummvm-rg350-d2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00.zip
AUDIO: Fix usage of Timestamp::convertToFramerate
Diffstat (limited to 'audio/decoders/quicktime.cpp')
-rw-r--r--audio/decoders/quicktime.cpp3
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;