Commit 802fcc57 authored by Andrey Morozov's avatar Andrey Morozov

fixed "bitrate tolerance too small for bitrate"

parent b138dbde
...@@ -1307,6 +1307,8 @@ bool CvVideoWriter_FFMPEG::open( const char * filename, int fourcc, ...@@ -1307,6 +1307,8 @@ bool CvVideoWriter_FFMPEG::open( const char * filename, int fourcc,
CV_Error(CV_StsBadArg, "codec not found"); CV_Error(CV_StsBadArg, "codec not found");
} }
c->bit_rate_tolerance = c->bit_rate;
/* open the codec */ /* open the codec */
if ( (err=avcodec_open(c, codec)) < 0) { if ( (err=avcodec_open(c, codec)) < 0) {
char errtext[256]; char errtext[256];
......
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