summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demuxer.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-12 10:48:42 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-12 10:48:42 +0000
commitdf6f7b80c6fc76ae9aef684296e52ed4c8f69986 (patch)
tree512d9a1fcf66caffcf8edaae03d3b6e99fe90689 /libmpdemux/demuxer.h
parentf785eba8a1af1345bd757e00ab419c8b0120f5ea (diff)
downloadmpv-df6f7b80c6fc76ae9aef684296e52ed4c8f69986.tar.bz2
mpv-df6f7b80c6fc76ae9aef684296e52ed4c8f69986.tar.xz
Change to always use MP_NOPTS_VALUE (instead of sometimes 0) for unknown pts.
I did not see anything obvious that would break, it if it does it should be fixed properly once and for all. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25988 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demuxer.h')
-rw-r--r--libmpdemux/demuxer.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h
index d640d0e807..08f7ad538e 100644
--- a/libmpdemux/demuxer.h
+++ b/libmpdemux/demuxer.h
@@ -228,9 +228,7 @@ static inline demux_packet_t* new_demux_packet(int len){
demux_packet_t* dp=(demux_packet_t*)malloc(sizeof(demux_packet_t));
dp->len=len;
dp->next=NULL;
- // 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->pts=MP_NOPTS_VALUE;
dp->endpts=MP_NOPTS_VALUE;
dp->stream_pts = MP_NOPTS_VALUE;
dp->pos=0;