Skip to content

Commit 8f4251f

Browse files
committed
Merge pull request opencv#7655 from alalek:backport_7213
2 parents f632f5c + 64a2d19 commit 8f4251f

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)