[vlc-devel] commit: Fixed rawvideo packetizer. (Laurent Aimar )

git version control git at videolan.org
Wed Nov 19 21:23:13 CET 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Nov 19 21:21:55 2008 +0100| [b5c81d3d419e117085c569cbb22e3376f7118134] | committer: Laurent Aimar 

Fixed rawvideo packetizer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5c81d3d419e117085c569cbb22e3376f7118134
---

 modules/codec/rawvideo.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/codec/rawvideo.c b/modules/codec/rawvideo.c
index f0ed573..e79e2ed 100644
--- a/modules/codec/rawvideo.c
+++ b/modules/codec/rawvideo.c
@@ -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 );




More information about the vlc-devel mailing list