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 f0ed573..e79e2ed 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 );