mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
ffmpeg: fill avg_frame_rate
This commit is contained in:
parent
6d54abbd0f
commit
03767340bb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user