Skip to content

Commit 64a2d19

Browse files
committed
ffmpeg: backport 7213
Commit: 6d54abb
1 parent 422154d commit 64a2d19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/highgui/src/cap_ffmpeg_impl.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,10 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc,
14821482
}
14831483
#endif
14841484

1485+
#if LIBAVCODEC_BUILD >= CALC_FFMPEG_VERSION(52, 42, 0)
1486+
st->avg_frame_rate = (AVRational){frame_rate, frame_rate_base};
1487+
#endif
1488+
14851489
return st;
14861490
}
14871491

0 commit comments

Comments
 (0)