Commit 8c6334fa authored by conrad's avatar conrad

libvorbis: Hook up min/max bitrate

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23469 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5882144e
......@@ -60,9 +60,12 @@ static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avcco
avccontext->global_quality / (float)FF_QP2LAMBDA / 10.0))
return -1;
} else {
int minrate = avccontext->rc_min_rate > 0 ? avccontext->rc_min_rate : -1;
int maxrate = avccontext->rc_min_rate > 0 ? avccontext->rc_max_rate : -1;
/* constant bitrate */
if(vorbis_encode_setup_managed(vi, avccontext->channels,
avccontext->sample_rate, -1, avccontext->bit_rate, -1))
avccontext->sample_rate, minrate, avccontext->bit_rate, maxrate))
return -1;
#ifdef OGGVORBIS_VBR_BY_ESTIMATE
......
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