diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index 7743d549fc..16e0ca4b5f 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -1069,7 +1069,7 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc, frame_rate=(int)(fps+0.5); frame_rate_base=1; while (fabs((double)frame_rate/frame_rate_base) - fps > 0.001){ - frame_rate_base*=10; + frame_rate_base *= 10; frame_rate=(int)(fps*frame_rate_base + 0.5); } #if LIBAVFORMAT_BUILD > 4752