changeset 24945:46337ac77770

10l, setting a non-existent timestamp (default 0.0) when the pts flag isn't set in the PES header is just wrong; leave the default MP_NOPTS_VALUE instead
author nicodvb
date Mon, 05 Nov 2007 20:15:09 +0000
parents 975308353c33
children 259a3df86fbc
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Mon Nov 05 16:34:15 2007 +0000
+++ b/libmpdemux/demux_mpg.c	Mon Nov 05 20:15:09 2007 +0000
@@ -575,6 +575,7 @@
     if(l<len)
       resize_demux_packet(dp, l);
     len = l;
+    if(set_pts)
     dp->pts=pts/90000.0f;
     dp->pos=demux->filepos;
     /*