[vlc-commits] commit: ts.c: check that pts is valid for H264 (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Thu Jul 8 14:38:28 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Jul 7 18:21:52 2010 +0300| [cf45f5073677d2e7bfe57066c426340703198107] | committer: Ilkka Ollakka
ts.c: check that pts is valid for H264
Hackish workaround for #3306
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf45f5073677d2e7bfe57066c426340703198107
---
modules/mux/mpeg/ts.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index eb0ce12..abe62c4 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,
More information about the vlc-commits
mailing list