[vlc-commits] input: decoder: don't increment failed timestamp conversion

Francois Cartegnie git at videolan.org
Tue Jun 26 23:21:32 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jun 22 09:21:46 2018 +0200| [1ffd99da109126b2584bf4e409780d40d4c05e14] | committer: Francois Cartegnie

input: decoder: don't increment failed timestamp conversion

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

 src/input/decoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 411f913715..988103ea78 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -774,7 +774,7 @@ static void DecoderFixTs( decoder_t *p_dec, vlc_tick_t *pi_ts0, vlc_tick_t *pi_t
     }
 
     /* Do not create ephemere data because of rounding errors */
-    if( !b_ephemere && pi_ts1 && *pi_ts0 == *pi_ts1 )
+    if( !b_ephemere && pi_ts1 && *pi_ts1 != VLC_TS_INVALID && *pi_ts0 == *pi_ts1 )
         *pi_ts1 += 1;
 
     if( pi_duration )



More information about the vlc-commits mailing list