[vlc-commits] TS mux: use DTS if PTS is not available
Rafaël Carré
git at videolan.org
Tue Jun 4 21:12:23 CEST 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri May 31 12:49:22 2013 +0200| [4c49d3e1db6470350f03c6bcc9db6ce40b7a669e] | committer: Rafaël Carré
TS mux: use DTS if PTS is not available
Ensure video can be decoded by VLC
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c49d3e1db6470350f03c6bcc9db6ce40b7a669e
---
modules/mux/mpeg/ts.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 13edb25..4703a92 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -1286,6 +1286,8 @@ static bool MuxStreams(sout_mux_t *p_mux )
|| p_input->p_fmt->i_codec != VLC_CODEC_MPGA )
{
p_data = block_FifoGet( p_input->p_fifo );
+ if (p_data->i_pts <= VLC_TS_INVALID)
+ p_data->i_pts = p_data->i_dts;
if( p_input->p_fmt->i_codec == VLC_CODEC_MP4A )
p_data = Add_ADTS( p_data, p_input->p_fmt );
More information about the vlc-commits
mailing list