]> git.sesse.net Git - vlc/commitdiff
ts.c: check that pts is valid for H264
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 7 Jul 2010 15:21:52 +0000 (18:21 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 8 Jul 2010 12:36:25 +0000 (15:36 +0300)
Hackish workaround for #3306

modules/mux/mpeg/ts.c

index eb0ce1243aa75823a414a7c191ca0d4a4eabbd0e..abe62c4fa86711263faade1fcd0c954e4d090ed0 100644 (file)
@@ -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,