mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
libvorbis: Disable strict bitrate management when not requested
This is 3 times faster in a quick benchmark Originally committed as revision 23471 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ed638b5c4b
commit
57ebbccf9c
@ -68,11 +68,10 @@ static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avcco
|
|||||||
avccontext->sample_rate, minrate, avccontext->bit_rate, maxrate))
|
avccontext->sample_rate, minrate, avccontext->bit_rate, maxrate))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
#ifdef OGGVORBIS_VBR_BY_ESTIMATE
|
/* variable bitrate by estimate, disable slow rate management */
|
||||||
/* variable bitrate by estimate */
|
if(minrate == -1 && maxrate == -1)
|
||||||
if(vorbis_encode_ctl(vi, OV_ECTL_RATEMANAGE2_SET, NULL))
|
if(vorbis_encode_ctl(vi, OV_ECTL_RATEMANAGE2_SET, NULL))
|
||||||
return -1;
|
return -1;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* cutoff frequency */
|
/* cutoff frequency */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user