aboutsummaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorBastien Bouclet2019-02-02 13:30:44 +0100
committerBastien Bouclet2019-02-02 13:30:44 +0100
commitf72f71a6cc1a6bcd1b92199457165e35a6362cee (patch)
tree9ae511a8f9a18729ad16b79c0a3f489365d94e33 /video
parent27a7a67778a1cd59e24ffe756b68cdd8888e19d4 (diff)
downloadscummvm-rg350-f72f71a6cc1a6bcd1b92199457165e35a6362cee.tar.gz
scummvm-rg350-f72f71a6cc1a6bcd1b92199457165e35a6362cee.tar.bz2
scummvm-rg350-f72f71a6cc1a6bcd1b92199457165e35a6362cee.zip
VIDEO: Keep track of the duration of ignored edits
Fixes inconsistent videos playing in Caldoria in the DVD version of JMP Pegasus Prime.
Diffstat (limited to 'video')
-rw-r--r--video/qt_decoder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/qt_decoder.cpp b/video/qt_decoder.cpp
index bb9a92225b..4a47c6ab6d 100644
--- a/video/qt_decoder.cpp
+++ b/video/qt_decoder.cpp
@@ -313,6 +313,7 @@ void QuickTimeDecoder::VideoTrackHandler::checkEditListBounds() {
EditListEntry &edit = _parent->editList[i];
if (edit.mediaTime < 0) {
+ offset += edit.trackDuration;
continue; // Ignore empty edits
}