Skip to content

Commit

Permalink
VIDEO: Remove the "-1" edit hack
Browse files Browse the repository at this point in the history
With the previous commits' fixes, it's no longer needed
  • Loading branch information
Matthew Hoops committed Jan 21, 2015
1 parent 1a0f104 commit 7d1ee55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions video/qt_decoder.cpp
Expand Up @@ -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

0 comments on commit 7d1ee55

Please sign in to comment.