projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ae52f
)
minor changes in wrapper
author
Alexander Shishkov
<no@email>
Thu, 15 Mar 2012 15:30:01 +0000
(15:30 +0000)
committer
Alexander Shishkov
<no@email>
Thu, 15 Mar 2012 15:30:01 +0000
(15:30 +0000)
modules/highgui/src/cap_ffmpeg_impl.hpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/cap_ffmpeg_impl.hpp
b/modules/highgui/src/cap_ffmpeg_impl.hpp
index
16e0ca4
..
2ef91d3
100644
(file)
--- a/
modules/highgui/src/cap_ffmpeg_impl.hpp
+++ b/
modules/highgui/src/cap_ffmpeg_impl.hpp
@@
-1066,8
+1066,8
@@
static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc,
of which frame timestamps are represented. for fixed-fps content,
timebase should be 1/framerate and timestamp increments should be
identically 1. */
-
frame_rate=(int)
(fps+0.5);
-
frame_rate_base=
1;
+
frame_rate = static_cast<int>
(fps+0.5);
+
frame_rate_base =
1;
while (fabs((double)frame_rate/frame_rate_base) - fps > 0.001){
frame_rate_base *= 10;
frame_rate=(int)(fps*frame_rate_base + 0.5);