Commit 79d91b36 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avcodec: Fix double FPS display

Close #5671
Patch by "rycius" on trac
parent 0507661c
......@@ -172,7 +172,7 @@ static inline picture_t *ffmpeg_NewPictBuf( decoder_t *p_dec,
else if( p_context->time_base.num > 0 && p_context->time_base.den > 0 )
{
p_dec->fmt_out.video.i_frame_rate = p_context->time_base.den;
p_dec->fmt_out.video.i_frame_rate_base = p_context->time_base.num;
p_dec->fmt_out.video.i_frame_rate_base = p_context->time_base.num * __MAX( p_context->ticks_per_frame, 1 );
}
return decoder_NewPicture( p_dec );
......
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