projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12d4276
)
avoid use of OpenCV functions (like cvRound) in cap_ffmpeg_impl*.hpp
author
Vadim Pisarevsky
<no@email>
Tue, 10 Apr 2012 08:40:50 +0000
(08:40 +0000)
committer
Vadim Pisarevsky
<no@email>
Tue, 10 Apr 2012 08:40:50 +0000
(08:40 +0000)
modules/highgui/src/cap_ffmpeg_impl_v2.hpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/cap_ffmpeg_impl_v2.hpp
b/modules/highgui/src/cap_ffmpeg_impl_v2.hpp
index
e8b3815
..
72fefa7
100755
(executable)
--- 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