aboutsummaryrefslogtreecommitdiff
path: root/video/video_decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video/video_decoder.cpp')
-rw-r--r--video/video_decoder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp
index cf11649c10..14826642d7 100644
--- a/video/video_decoder.cpp
+++ b/video/video_decoder.cpp
@@ -413,6 +413,10 @@ Audio::Timestamp VideoDecoder::Track::getDuration() const {
return Audio::Timestamp(0, 1000);
}
+bool VideoDecoder::VideoTrack::endOfTrack() const {
+ return getCurFrame() >= (getFrameCount() - 1);
+}
+
uint32 VideoDecoder::FixedRateVideoTrack::getNextFrameStartTime() const {
if (endOfTrack() || getCurFrame() < 0)
return 0;
@@ -422,10 +426,6 @@ uint32 VideoDecoder::FixedRateVideoTrack::getNextFrameStartTime() const {
return time.toInt();
}
-bool VideoDecoder::FixedRateVideoTrack::endOfTrack() const {
- return getCurFrame() >= (getFrameCount() - 1);
-}
-
Audio::Timestamp VideoDecoder::FixedRateVideoTrack::getDuration() const {
// Since Audio::Timestamp doesn't support a fractional frame rate, we're currently
// just converting to milliseconds.