diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-31 11:05:26 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-31 11:05:26 +0000 |
commit | b5898c2aa69ce52f779f54488ecac90dd58b1f53 (patch) | |
tree | 971ff66835751023bdf504f991904cc755f45ddc /libmpdemux/demuxer.h | |
parent | 9eb302dee8a9d2ec1da03d6d1b100958e4ebe827 (diff) | |
download | mpv-b5898c2aa69ce52f779f54488ecac90dd58b1f53.tar.bz2 mpv-b5898c2aa69ce52f779f54488ecac90dd58b1f53.tar.xz |
added stream_pts to demuxer_t and demux_packet_t to hold the time value reported by the stream layer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21796 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demuxer.h')
-rw-r--r-- | libmpdemux/demuxer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h index aaa3f1476a..4aa4a5da1d 100644 --- a/libmpdemux/demuxer.h +++ b/libmpdemux/demuxer.h @@ -85,6 +85,7 @@ typedef struct demux_packet_st { int len; double pts; + double stream_pts; off_t pos; // position in index (AVI) or file (MPG) unsigned char* buffer; int flags; // keyframe, etc @@ -176,6 +177,7 @@ typedef struct demuxer_st { off_t movi_start; off_t movi_end; stream_t *stream; + double stream_pts; // current stream pts, if applicable (e.g. dvd) char *filename; ///< Needed by avs_check_file int synced; // stream synced (used by mpeg) int type; // demuxer type: mpeg PS, mpeg ES, avi, avi-ni, avi-nini, asf @@ -210,6 +212,7 @@ inline static demux_packet_t* new_demux_packet(int len){ // still using 0 by default in case there is some code that uses 0 for both // unknown and a valid pts value dp->pts=correct_pts ? MP_NOPTS_VALUE : 0; + dp->stream_pts = MP_NOPTS_VALUE; dp->pos=0; dp->flags=0; dp->refcount=1; |