[vlc-devel] commit: Fixed timestamp validity check in decoder (probably close #2502) ( Laurent Aimar )

git version control git at videolan.org
Mon Feb 9 21:09:08 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Feb  8 16:35:50 2009 +0100| [0e420affc7ce603fb900ea14124a9b00277312a6] | committer: Laurent Aimar 

Fixed timestamp validity check in decoder (probably close #2502)

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

 src/input/decoder.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 3f7ff47..76dba45 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1060,7 +1060,8 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
             *pi_ts0 += i_es_delay;
             if( pi_ts1 && *pi_ts1 > 0 )
                 *pi_ts1 += i_es_delay;
-            input_clock_ConvertTS( p_clock, &i_rate, pi_ts0, pi_ts1, i_ts_bound );
+            if( input_clock_ConvertTS( p_clock, &i_rate, pi_ts0, pi_ts1, i_ts_bound ) )
+                *pi_ts0 = 0;
         }
         else
         {




More information about the vlc-devel mailing list