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

git version control git at videolan.org
Mon Dec 7 17:55:09 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 17:43:12 2009 +0100| [61f757bbca707b37caa6ed569486303fbc5eb6cf] | committer: Rafaël Carré 

spudec: use VLC_TS_INVALID (refs #3135)

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

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

diff --git a/modules/codec/spudec/spudec.c b/modules/codec/spudec/spudec.c
index bd9be5d..61bbd6a 100644
--- a/modules/codec/spudec/spudec.c
+++ b/modules/codec/spudec/spudec.c
@@ -200,7 +200,7 @@ static block_t *Reassemble( decoder_t *p_dec, block_t **pp_block )
     *pp_block = NULL;
 
     if( p_sys->i_spu_size <= 0 &&
-        ( p_block->i_pts <= 0 || p_block->i_buffer < 4 ) )
+        ( p_block->i_pts <= VLC_TS_INVALID || p_block->i_buffer < 4 ) )
     {
         msg_Dbg( p_dec, "invalid starting packet (size < 4 or pts <=0)" );
         msg_Dbg( p_dec, "spu size: %d, i_pts: %"PRId64" i_buffer: %zu",




More information about the vlc-devel mailing list