Commit 97867416 authored by Ilkka Ollakka's avatar Ilkka Ollakka Committed by Rémi Denis-Courmont
Browse files

avformat: remove pts hack on recent libavformat

The field AVStream.cur_dts has been removed in libavformat 59.2.103.

Refs vlc4/c2ba623f
Refs ffmpeg/591b88e6787c4e678237f02a50421d101abd25c2
parent 00bd7590
Pipeline #184082 passed with stages
in 20 minutes and 22 seconds
......@@ -384,9 +384,11 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
pkt->dts = p_data->i_dts * p_stream->time_base.den /
CLOCK_FREQ / p_stream->time_base.num;
#if LIBAVFORMAT_VERSION_MICRO >= 100 && LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(59, 2, 103)
/* this is another hack to prevent libavformat from triggering the "non monotone timestamps" check in avformat/utils.c */
p_stream->cur_dts = ( p_data->i_dts * p_stream->time_base.den /
CLOCK_FREQ / p_stream->time_base.num ) - 1;
#endif
if( av_write_frame( p_sys->oc, pkt ) < 0 )
{
......
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