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

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


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 17:35:11 2009 +0100| [76ed5901f9f36f922e16b3d543d47cfa317c5ed0] | committer: Rafaël Carré 

realvideo: use VLC_TS_INVALID (refs #3135)

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

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

diff --git a/modules/codec/realvideo.c b/modules/codec/realvideo.c
index 5b2c5a4..1a8160f 100644
--- a/modules/codec/realvideo.c
+++ b/modules/codec/realvideo.c
@@ -456,7 +456,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
     p_block = *pp_block;
     *pp_block = NULL;
 
-    i_pts = p_block->i_pts ? p_block->i_pts : p_block->i_dts;
+    i_pts = (p_block->i_pts > VLC_TS_INVALID) ? p_block->i_pts : p_block->i_dts;
 
     vlc_mutex_lock( &rm_mutex );
 




More information about the vlc-devel mailing list