diff options
author | Matthew Hoops | 2012-07-22 00:58:38 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-07-22 00:58:38 -0400 |
commit | 9bf17934d3fb6ab30c64dd87dfed1e5f154bca51 (patch) | |
tree | 3be80ff08eafe750651cb5cd7839ecf142097d9c /video | |
parent | 4c9c22b374569e9f93b30137b57eaa2912beffc4 (diff) | |
download | scummvm-rg350-9bf17934d3fb6ab30c64dd87dfed1e5f154bca51.tar.gz scummvm-rg350-9bf17934d3fb6ab30c64dd87dfed1e5f154bca51.tar.bz2 scummvm-rg350-9bf17934d3fb6ab30c64dd87dfed1e5f154bca51.zip |
VIDEO: Take audio start time into account when syncing to audio
Diffstat (limited to 'video')
-rw-r--r-- | video/video_decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index 4ac914927e..5946a7d79c 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -200,7 +200,7 @@ uint32 AdvancedVideoDecoder::getTime() const { uint32 time = ((const AudioTrack *)*it)->getRunningTime(); if (time != 0) - return time + _audioStartOffset.msecs(); + return time + (*it)->getStartTime().msecs() + _audioStartOffset.msecs(); } } } |