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:
7426684
)
minor fix in calculate bitrate
author
Andrey Morozov
<no@email>
Fri, 20 Apr 2012 12:18:40 +0000
(12:18 +0000)
committer
Andrey Morozov
<no@email>
Fri, 20 Apr 2012 12:18:40 +0000
(12:18 +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
a5f643d
..
800d457
100755
(executable)
--- a/
modules/highgui/src/cap_ffmpeg_impl_v2.hpp
+++ b/
modules/highgui/src/cap_ffmpeg_impl_v2.hpp
@@
-1469,6
+1469,7
@@
void CvVideoWriter_FFMPEG::close()
lbit_rate += (bitrate / 2);
lbit_rate = std::min(lbit_rate, static_cast<unsigned long long>(std::numeric_limits<int>::max()));
c->bit_rate_tolerance = static_cast<int>(lbit_rate);
+ c->bit_rate = static_cast<int>(lbit_rate);
/* open the codec */
if ((err=