]> git.sesse.net Git - vlc/commitdiff
* ts: if no dts but there is a pts then dts == pts.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 25 Feb 2005 16:05:22 +0000 (16:05 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 25 Feb 2005 16:05:22 +0000 (16:05 +0000)
modules/demux/ts.c

index dac70576f093b1c22784615b270de6630cd93cca..5f6fb25057360de2a2163a16c27676683d81875b 100644 (file)
@@ -1256,6 +1256,10 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid )
         }
     }
 
+    /* ISO/IEC 13818-1 2.7.5: if no pts and no dts, then dts == pts */
+    if( i_pts >= 0 && i_dts < 0 )
+        i_dts = i_pts;
+
     if( p_pes )
     {
         block_t *p_block;