From 538eeeab1deccd17557635cc4ada47330e677afe Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Thu, 15 Mar 2012 15:43:14 +0000 Subject: [PATCH] minor changes in wrapper 2 --- modules/highgui/src/cap_ffmpeg_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index ae5c382f33..7289df95c8 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -1070,7 +1070,7 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc, frame_rate_base = 1; while (fabs(static_cast(frame_rate)/frame_rate_base) - fps > 0.001){ frame_rate_base *= 10; - frame_rate=(int)(fps*frame_rate_base + 0.5); + frame_rate = static_cast(fps*frame_rate_base + 0.5); } #if LIBAVFORMAT_BUILD > 4752 c->time_base.den = frame_rate;