[vlc-devel] commit: cdg: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )

git version control git at videolan.org
Mon Dec 7 08:50:41 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 08:24:44 2009 +0100| [782d17dfaf14e6593362529350b38c977be60fe0] | committer: Rafaël Carré 

cdg: use VLC_TS_INVALID (refs #3135)

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

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

diff --git a/modules/codec/cdg.c b/modules/codec/cdg.c
index 8b3d574..13a234e 100644
--- a/modules/codec/cdg.c
+++ b/modules/codec/cdg.c
@@ -166,7 +166,7 @@ static picture_t *Decode( decoder_t *p_dec, block_t **pp_block )
             goto exit;
 
         Render( p_sys, p_pic );
-        p_pic->date = p_block->i_pts > 0 ? p_block->i_pts : p_block->i_dts;
+        p_pic->date = p_block->i_pts > VLC_TS_INVALID ? p_block->i_pts : p_block->i_dts;
     }
 
 exit:




More information about the vlc-devel mailing list