From cf45f5073677d2e7bfe57066c426340703198107 Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Wed, 7 Jul 2010 18:21:52 +0300 Subject: [PATCH] ts.c: check that pts is valid for H264 Hackish workaround for #3306 --- modules/mux/mpeg/ts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.2