fixed "bitrate tolerance too small for bitrate"

This commit is contained in:
Andrey Morozov 2011-06-16 08:31:08 +00:00
parent b138dbde3f
commit 802fcc57a2

View File

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