[vlc-commits] Ignore invalid timestamps (PS demuxer)

Tobias Güntner git at videolan.org
Tue Oct 25 22:52:51 CEST 2011


vlc | branch: master | Tobias Güntner <fatbull at web.de> | Fri Sep  9 16:19:09 2011 +0000| [22dc9766c517fe7e6a7806737cb8529ba42ef821] | committer: Laurent Aimar

Ignore invalid timestamps (PS demuxer)

Signed-off-by: Laurent Aimar <fenrir at videolan.org>

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

 modules/demux/ps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/ps.c b/modules/demux/ps.c
index dd4f729..e675e80 100644
--- a/modules/demux/ps.c
+++ b/modules/demux/ps.c
@@ -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 )
             {



More information about the vlc-commits mailing list