]> git.sesse.net Git - vlc/commitdiff
* modules/packetizer/mpeg4video.c: oops
authorGildas Bazin <gbazin@videolan.org>
Sun, 30 Nov 2003 22:59:10 +0000 (22:59 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sun, 30 Nov 2003 22:59:10 +0000 (22:59 +0000)
modules/packetizer/mpeg4video.c

index 1dad70f91da8f1cdfd84b7af4923eb90663c0503..d31ab78f0c920eee13260e13d793c5738c5bc3da 100644 (file)
@@ -2,7 +2,7 @@
  * mpeg4video.c: mpeg 4 video packetizer
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: mpeg4video.c,v 1.19 2003/11/30 22:47:55 gbazin Exp $
+ * $Id: mpeg4video.c,v 1.20 2003/11/30 22:59:10 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
@@ -285,7 +285,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
 
             /* The pts information is not available in all the containers.
              * FIXME: calculate the pts correctly */
-            if( p_sys->i_pts )
+            if( p_block->i_pts > 0 )
             {
                 p_sys->i_pts = p_block->i_pts;
             }