Commit bc4789a0 authored by Ilkka Ollakka's avatar Ilkka Ollakka

set stream->dr_dts according to i_dts instead AV_NOPTS_VALUE; seems to

fix that flv muxing issue, and doesn't seem to cause regression. fixes
#1285. Please notify if you notice something broken after this.
parent bb5b4261
...@@ -367,7 +367,8 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input ) ...@@ -367,7 +367,8 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
I64C(1000000) / p_stream->time_base.num; I64C(1000000) / p_stream->time_base.num;
/* this is another hack to prevent libavformat from triggering the "non monotone timestamps" check in avformat/utils.c */ /* this is another hack to prevent libavformat from triggering the "non monotone timestamps" check in avformat/utils.c */
p_stream->cur_dts = AV_NOPTS_VALUE; p_stream->cur_dts = ( p_data->i_dts * p_stream->time_base.den /
I64C(1000000) / p_stream->time_base.num ) - 1;
if( av_write_frame( p_sys->oc, &pkt ) < 0 ) 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