]> git.sesse.net Git - vlc/commitdiff
Ignore invalid timestamps (PS demuxer)
authorTobias Güntner <fatbull@web.de>
Fri, 9 Sep 2011 16:19:09 +0000 (16:19 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 25 Oct 2011 20:47:37 +0000 (22:47 +0200)
Signed-off-by: Laurent Aimar <fenrir@videolan.org>
modules/demux/ps.c

index dd4f729ebdcbb475fcc180ddb710573592a767f8..e675e808f209e8c6cea66b8cf46c9dc73f645f6f 100644 (file)
@@ -218,7 +218,7 @@ static int Demux2( demux_t *p_demux, bool b_end )
     if( (i_id = ps_pkt_id( p_pkt )) >= 0xc0 )
     {
         ps_track_t *tk = &p_sys->tk[PS_ID_TO_TK(i_id)];
-        if( !ps_pkt_parse_pes( p_pkt, tk->i_skip ) )
+        if( !ps_pkt_parse_pes( p_pkt, tk->i_skip ) && p_pkt->i_pts > VLC_TS_INVALID )
         {
             if( b_end && p_pkt->i_pts > tk->i_last_pts )
             {