Commit 71768c38 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/ffmpeg/video.c: use frame-rate from container, if available (Closes:#428).

parent cb3ffd97
......@@ -187,6 +187,15 @@ static inline picture_t *ffmpeg_NewPictBuf( decoder_t *p_dec,
}
}
if( p_dec->fmt_out.video.i_frame_rate > 0 &&
p_dec->fmt_out.video.i_frame_rate_base > 0 )
{
p_dec->fmt_out.video.i_frame_rate =
p_dec->fmt_in.video.i_frame_rate;
p_dec->fmt_out.video.i_frame_rate_base =
p_dec->fmt_out.video.i_frame_rate_base;
}
else
#if LIBAVCODEC_BUILD >= 4754
if( p_context->time_base.num > 0 && p_context->time_base.den > 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