aboutsummaryrefslogtreecommitdiff
path: root/video/qt_decoder.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2015-01-16 02:10:25 -0500
committerMatthew Hoops2015-01-20 20:10:59 -0500
commit7d1ee5563a7168843b9f6400010ddd9983abebbc (patch)
tree82d693a872ddfcc91d72b99332928cb5468dee42 /video/qt_decoder.cpp
parent1a0f104acfd465fa577dd14a43b368f92794a9d0 (diff)
downloadscummvm-rg350-7d1ee5563a7168843b9f6400010ddd9983abebbc.tar.gz
scummvm-rg350-7d1ee5563a7168843b9f6400010ddd9983abebbc.tar.bz2
scummvm-rg350-7d1ee5563a7168843b9f6400010ddd9983abebbc.zip
VIDEO: Remove the "-1" edit hack
With the previous commits' fixes, it's no longer needed
Diffstat (limited to 'video/qt_decoder.cpp')
-rw-r--r--video/qt_decoder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/qt_decoder.cpp b/video/qt_decoder.cpp
index 8ce10d9917..08d7620fb2 100644
--- a/video/qt_decoder.cpp
+++ b/video/qt_decoder.cpp
@@ -748,9 +748,9 @@ bool QuickTimeDecoder::VideoTrackHandler::atLastEdit() const {
}
bool QuickTimeDecoder::VideoTrackHandler::endOfCurEdit() const {
- // HACK: We're also accepting the time minus one because edit lists
- // aren't as accurate as one would hope.
- return getRateAdjustedFrameTime() >= getCurEditTimeOffset() + getCurEditTrackDuration() - 1;
+ // We're at the end of the edit once the next frame's time would
+ // bring us past the end of the edit.
+ return getRateAdjustedFrameTime() >= getCurEditTimeOffset() + getCurEditTrackDuration();
}
} // End of namespace Video