From 38befe33366615cba17cd52c23fc1a17d7a544ee Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Tue, 10 Apr 2012 08:40:50 +0000 Subject: [PATCH] avoid use of OpenCV functions (like cvRound) in cap_ffmpeg_impl*.hpp --- modules/highgui/src/cap_ffmpeg_impl_v2.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/cap_ffmpeg_impl_v2.hpp b/modules/highgui/src/cap_ffmpeg_impl_v2.hpp index e8b38155ed..72fefa71a2 100755 --- a/modules/highgui/src/cap_ffmpeg_impl_v2.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl_v2.hpp @@ -1416,7 +1416,7 @@ void CvVideoWriter_FFMPEG::close() // TODO -- safe to ignore output audio stream? video_st = icv_add_video_stream_FFMPEG(oc, codec_id, - width, height, cvRound(bitrate), + width, height, (int)(bitrate + 0.5), fps, codec_pix_fmt); /* set the output parameters (must be done even if no