Commit 22dc9766 authored by Tobias Güntner's avatar Tobias Güntner Committed by Laurent Aimar

Ignore invalid timestamps (PS demuxer)

Signed-off-by: default avatarLaurent Aimar <fenrir@videolan.org>
parent f942343d
......@@ -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 )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment