[MPlayer-dev-eng] [PATCH] demuxer and MP_NOPTS_VALUE

Christian Aistleitner zaek7q at gmx.net
Fri Apr 20 23:04:56 CEST 2007


I am suspicious about the usage MP_NOPTS_VALUE. As MP_NOPTS_VALUE is used  
at several places when no check for correct_pts is made (e.g. mpcommon.c),  
I assume MP_NOPTS_VALUE may be used, regardless of -correct-pts.
However, libmpdemux/demuxer.c initializes ds->pts to 0 and not  
MP_NOPTS_VALUE. Furthermore, fill_buffers handling does not respect pts of  
MP_NOPTS_VALUE if correct_pts is not set.

Is my understanding of MP_NOPTS_VALUE flawed?
If it is not, the attached patch fixes these two issues.

Kind regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demuxer.diff
Type: application/octet-stream
Size: 613 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070420/82aa1b7d/attachment.obj>

More information about the MPlayer-dev-eng mailing list