avoid use of OpenCV functions (like cvRound) in cap_ffmpeg_impl*.hpp
authorVadim Pisarevsky <no@email>
Tue, 10 Apr 2012 08:40:50 +0000 (08:40 +0000)
committerVadim Pisarevsky <no@email>
Tue, 10 Apr 2012 08:40:50 +0000 (08:40 +0000)
modules/highgui/src/cap_ffmpeg_impl_v2.hpp

index e8b3815..72fefa7 100755 (executable)
@@ -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