if(avccontext->flags & CODEC_FLAG_QSCALE) { return vorbis_encode_init_vbr(vi, avccontext->channels, avccontext->sample_rate, avccontext->global_quality / (float)FF_QP2LAMBDA); }
static int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {#ifdef OGGVORBIS_VBR_BY_ESTIMATE    /* variable bitrate by estimate */    return (vorbis_encode_setup_managed(vi, avccontext->channels,              avccontext->sample_rate, -1, avccontext->bit_rate, -1) ||	    vorbis_encode_ctl(vi, OV_ECTL_RATEMANAGE_AVG, NULL) ||	    vorbis_encode_setup_init(vi)) ;#else    /* constant bitrate */    return vorbis_encode_init(vi, avccontext->channels,	          avccontext->sample_rate, -1, avccontext->bit_rate, -1) ;#endif}