From: Alexander Shishkov Date: Thu, 15 Mar 2012 15:36:14 +0000 (+0000) Subject: minor changes in wrapper X-Git-Tag: accepted/2.0/20130307.220821~1141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10b0f29372ec5b078bc42bd276b3d82d605b102a;p=profile%2Fivi%2Fopencv.git minor changes in wrapper --- diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index 2ef91d3..ae5c382 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -1068,7 +1068,7 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc, identically 1. */ frame_rate = static_cast(fps+0.5); frame_rate_base = 1; - while (fabs((double)frame_rate/frame_rate_base) - fps > 0.001){ + 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); }