Commit 38befe33 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

avoid use of OpenCV functions (like cvRound) in cap_ffmpeg_impl*.hpp

parent 12d42768
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment