From: Ilkka Ollakka Date: Wed, 7 Jul 2010 15:21:52 +0000 (+0300) Subject: ts.c: check that pts is valid for H264 X-Git-Tag: 1.2.0-pre1~5913 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=cf45f5073677d2e7bfe57066c426340703198107;p=vlc ts.c: check that pts is valid for H264 Hackish workaround for #3306 --- diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c index eb0ce1243a..abe62c4fa8 100644 --- a/modules/mux/mpeg/ts.c +++ b/modules/mux/mpeg/ts.c @@ -1604,7 +1604,8 @@ static int Mux( sout_mux_t *p_mux ) } /* Convert to pes */ - if( p_stream->i_stream_id == 0xa0 && + if( (p_stream->i_stream_id == 0xa0 || + p_stream->i_stream_type == 0x1b ) && /*Workaroud for bug #3306 */ p_data->i_pts <= 0 ) { /* XXX yes I know, it's awful, but it's needed,