ffmpeg: fill avg_frame_rate

This commit is contained in:
Alexander Alekhin 2016-09-08 14:42:01 +03:00
parent 6d54abbd0f
commit 03767340bb

View File

@ -1582,6 +1582,10 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc,
}
#endif
#if LIBAVCODEC_BUILD >= CALC_FFMPEG_VERSION(52, 42, 0)
st->avg_frame_rate = (AVRational){frame_rate, frame_rate_base};
#endif
return st;
}