mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Fixed FPS computation on some videos for FFmpeg backend.
This commit is contained in:
parent
e09684647a
commit
cbda161c39
@ -1537,7 +1537,7 @@ int64_t CvCapture_FFMPEG::get_bitrate() const
|
||||
|
||||
double CvCapture_FFMPEG::get_fps() const
|
||||
{
|
||||
#if 0 && LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(55, 1, 100) && LIBAVFORMAT_VERSION_MICRO >= 100
|
||||
#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(55, 1, 100) && LIBAVFORMAT_VERSION_MICRO >= 100
|
||||
double fps = r2d(av_guess_frame_rate(ic, ic->streams[video_stream], NULL));
|
||||
#else
|
||||
#if LIBAVCODEC_BUILD >= CALC_FFMPEG_VERSION(54, 1, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user