avoid use of OpenCV functions (like cvRound) in cap_ffmpeg_impl*.hpp
This commit is contained in:
parent
12d42768f8
commit
38befe3336
@ -1416,7 +1416,7 @@ void CvVideoWriter_FFMPEG::close()
|
|||||||
|
|
||||||
// TODO -- safe to ignore output audio stream?
|
// TODO -- safe to ignore output audio stream?
|
||||||
video_st = icv_add_video_stream_FFMPEG(oc, codec_id,
|
video_st = icv_add_video_stream_FFMPEG(oc, codec_id,
|
||||||
width, height, cvRound(bitrate),
|
width, height, (int)(bitrate + 0.5),
|
||||||
fps, codec_pix_fmt);
|
fps, codec_pix_fmt);
|
||||||
|
|
||||||
/* set the output parameters (must be done even if no
|
/* set the output parameters (must be done even if no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user