Mercurial > mplayer.hg
comparison libmpdemux/demuxer.h @ 25956:7e4a2ab8b61c
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.
author | reimar |
---|---|
date | Tue, 12 Feb 2008 10:48:42 +0000 |
parents | 382672c7480a |
children | 4129c8cfa742 |
comparison
equal
deleted
inserted
replaced
25955:eff9e1b25743 | 25956:7e4a2ab8b61c |
---|---|
226 | 226 |
227 static inline demux_packet_t* new_demux_packet(int len){ | 227 static inline demux_packet_t* new_demux_packet(int len){ |
228 demux_packet_t* dp=(demux_packet_t*)malloc(sizeof(demux_packet_t)); | 228 demux_packet_t* dp=(demux_packet_t*)malloc(sizeof(demux_packet_t)); |
229 dp->len=len; | 229 dp->len=len; |
230 dp->next=NULL; | 230 dp->next=NULL; |
231 // still using 0 by default in case there is some code that uses 0 for both | 231 dp->pts=MP_NOPTS_VALUE; |
232 // unknown and a valid pts value | |
233 dp->pts=correct_pts ? MP_NOPTS_VALUE : 0; | |
234 dp->endpts=MP_NOPTS_VALUE; | 232 dp->endpts=MP_NOPTS_VALUE; |
235 dp->stream_pts = MP_NOPTS_VALUE; | 233 dp->stream_pts = MP_NOPTS_VALUE; |
236 dp->pos=0; | 234 dp->pos=0; |
237 dp->flags=0; | 235 dp->flags=0; |
238 dp->refcount=1; | 236 dp->refcount=1; |