diff options
Diffstat (limited to 'video/qt_decoder.cpp')
-rw-r--r-- | video/qt_decoder.cpp | 6 |
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 |