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

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


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 08:38:59 2009 +0100| [9ed754851bfbbd60592fe1073280d474df146bbf] | committer: Rafaël Carré 

invmem: use VLC_TS_INVALID (refs #3135)

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

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

diff --git a/modules/codec/invmem.c b/modules/codec/invmem.c
index ca2fbd4..fddab7f 100644
--- a/modules/codec/invmem.c
+++ b/modules/codec/invmem.c
@@ -247,7 +247,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     if ( !p_pic ) return NULL;
     p_pic->b_force = true;
     p_pic->p->i_pitch = p_dec->p_sys->i_pitch;
-    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;
 
     // lock input and copy to picture
     p_pic->p->p_pixels = p_sys->pf_lock( p_dec->p_sys->p_data );




More information about the vlc-devel mailing list