[vlc-commits] demux: ps: check the packet PTS is valid using VLC_TICK_INVALID explicitely

Steve Lhomme git at videolan.org
Tue Sep 18 13:52:53 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun  1 12:44:59 2018 +0200| [693c566513ba65c4fdeec45a3ac9acd2014d3fdd] | committer: Steve Lhomme

demux: ps: check the packet PTS is valid using VLC_TICK_INVALID explicitely

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

 modules/demux/mpeg/ps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c
index fbb6d6c857..5da67059d8 100644
--- a/modules/demux/mpeg/ps.c
+++ b/modules/demux/mpeg/ps.c
@@ -597,7 +597,7 @@ static int Demux( demux_t *p_demux )
             {
                 if( tk->fmt.i_cat == AUDIO_ES || tk->fmt.i_cat == VIDEO_ES )
                 {
-                    if( !p_sys->b_bad_scr && p_sys->i_pack_scr != VLC_TICK_INVALID && p_pkt->i_pts > 0 &&
+                    if( !p_sys->b_bad_scr && p_sys->i_pack_scr != VLC_TICK_INVALID && p_pkt->i_pts != VLC_TICK_INVALID &&
                         p_sys->i_pack_scr > p_pkt->i_pts + VLC_TICK_FROM_MS(250) )
                     {
                         msg_Warn( p_demux, "Incorrect SCR timing in advance of %" PRId64 "ms, disabling",



More information about the vlc-commits mailing list