]> git.sesse.net Git - vlc/commitdiff
* mpeg4video: more cludges (it should be rewritten to calculate true
authorLaurent Aimar <fenrir@videolan.org>
Sat, 13 Mar 2004 18:52:55 +0000 (18:52 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 13 Mar 2004 18:52:55 +0000 (18:52 +0000)
dts/pts ...)

modules/packetizer/mpeg4video.c

index 5e1bbb19a7145d8bfbc31552d6e8bc03b1a12f17..9473cc3183e1cb50aa3f8dc15b689aab93662da8 100644 (file)
@@ -312,7 +312,10 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
             {
                 p_sys->i_pts = p_block->i_dts;
             }
-            p_sys->i_dts = p_block->i_dts;
+            if( p_block->i_dts > 0 )
+            {
+                p_sys->i_dts = p_block->i_dts;
+            }
         }
         p_start += 4; /* Next */
     }