Commit 720dc231 authored by Andrey Morozov's avatar Andrey Morozov

minor fix in calculate bitrate

parent 74266843
......@@ -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=
......
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