Commit 4c49d3e1 authored by Rafaël Carré's avatar Rafaël Carré

TS mux: use DTS if PTS is not available

Ensure video can be decoded by VLC
parent 5a43de50
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment