]> git.sesse.net Git - vlc/commitdiff
Fixed rawvideo packetizer.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 19 Nov 2008 20:21:55 +0000 (21:21 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 19 Nov 2008 20:21:55 +0000 (21:21 +0100)
modules/codec/rawvideo.c

index f0ed573e487d97b64b30a57d01e0eabd01ef2716..e79e2edff172683498be140b54ebfc5d9515d335 100644 (file)
@@ -213,7 +213,8 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
 
     p_block = *pp_block;
 
-    if( (!p_block->i_pts || !p_block->i_dts) && !date_Get( &p_sys->pts ) )
+
+    if( !p_block->i_pts && !p_block->i_dts && !date_Get( &p_sys->pts ) )
     {
         /* We've just started the stream, wait for the first PTS. */
         block_Release( p_block );