int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {

    if(avccontext->coded_frame->quality) /* VBR requested */

	return vorbis_encode_init_vbr(vi, avccontext->channels,

		  avccontext->sample_rate, (float)avccontext->coded_frame->quality / 1000) ;



    return vorbis_encode_init(vi, avccontext->channels,

	          avccontext->sample_rate, -1, avccontext->bit_rate, -1) ;

}

int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {

    if(avccontext->coded_frame->quality) 

	return vorbis_encode_init_vbr(vi, avccontext->channels,

		  avccontext->sample_rate, (float)avccontext->coded_frame->quality / 1000) ;



    return vorbis_encode_init(vi, avccontext->channels,

	          avccontext->sample_rate, -1, avccontext->bit_rate, -1) ;

}

	return vorbis_encode_init_vbr(vi, avccontext->channels, 		  avccontext->sample_rate, (float)avccontext->coded_frame->quality / 1000) ;
int FUNC_0(vorbis_info *VAR_0, AVCodecContext *VAR_1) {

    if(VAR_1->coded_frame->quality) 

	return vorbis_encode_init_vbr(VAR_0, VAR_1->channels,

		  VAR_1->sample_rate, (float)VAR_1->coded_frame->quality / 1000) ;



    return vorbis_encode_init(VAR_0, VAR_1->channels,

	          VAR_1->sample_rate, -1, VAR_1->bit_rate, -1) ;

}

int FUNC_0(vorbis_info *VAR_0, AVCodecContext *VAR_1) { if(VAR_1->coded_frame->quality)
return vorbis_encode_init_vbr(VAR_0, VAR_1->channels,
VAR_1->sample_rate, (float)VAR_1->coded_frame->quality / 1000) ; return vorbis_encode_init(VAR_0, VAR_1->channels,
VAR_1->sample_rate, -1, VAR_1->bit_rate, -1) ; }