summaryrefslogtreecommitdiffstats
path: root/video/decode/dec_video.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-25 23:16:22 +0100
committerwm4 <wm4@nowhere>2013-11-25 23:16:22 +0100
commit56d3ff33f123f06b6533d7fab726e5ac4a0013ae (patch)
tree9b54b6a9ab68abb0a7f5108edd7990f3bafe6499 /video/decode/dec_video.h
parentb5b16925938fd37a604f5235afc7257f0b9bd6c7 (diff)
downloadmpv-56d3ff33f123f06b6533d7fab726e5ac4a0013ae.tar.bz2
mpv-56d3ff33f123f06b6533d7fab726e5ac4a0013ae.tar.xz
video: move timestamp determination code to dec_video
This means the code that tries to figure out the timestamp from demuxer and decoder output is now all in dec_video.c. We set the final timestamp on the returned image (mp_image.pts), as well as the d_video->pts field. The way the player uses d_video->pts field is still a bit messy. Maybe this could be cleaned up later.
Diffstat (limited to 'video/decode/dec_video.h')
-rw-r--r--video/decode/dec_video.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/dec_video.h b/video/decode/dec_video.h
index 827dcb6237..6259d5b0d4 100644
--- a/video/decode/dec_video.h
+++ b/video/decode/dec_video.h
@@ -51,6 +51,8 @@ struct dec_video {
double prev_sorted_pts;
int num_sorted_pts_problems;
int pts_assoc_mode;
+
+ // PTS of the last decoded frame (often overwritten by player)
double pts;
float stream_aspect; // aspect ratio in media headers (DVD IFO files)