Commit 9f1141fd authored by conrad's avatar conrad

libvorbis: Disable strict bitrate management when not requested

This is 3 times faster in a quick benchmark

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23471 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4b0680d7
......@@ -68,11 +68,10 @@ static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avcco
avccontext->sample_rate, minrate, avccontext->bit_rate, maxrate))
return -1;
#ifdef OGGVORBIS_VBR_BY_ESTIMATE
/* variable bitrate by estimate */
/* variable bitrate by estimate, disable slow rate management */
if(minrate == -1 && maxrate == -1)
if(vorbis_encode_ctl(vi, OV_ECTL_RATEMANAGE2_SET, NULL))
return -1;
#endif
}
/* cutoff frequency */
......
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