From 64a2d1904b80faf71a322f934be885bee8ecac4a Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 11 Nov 2016 16:27:22 +0300 Subject: [PATCH] ffmpeg: backport 7213 Commit: 6d54abbd0fc64b23ea0b97f3c906cba219b52dc8 --- modules/highgui/src/cap_ffmpeg_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index da05bde324..a934faaa91 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -1482,6 +1482,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; }