1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

vorbisenc: set AVCodecContext.bit_rate to 0

The Vorbis encoder is always VBR.
This commit is contained in:
Justin Ruggles 2012-08-20 13:35:48 -04:00
parent 890fddd0ea
commit a0a5fed908

View File

@ -1180,6 +1180,7 @@ static av_cold int vorbis_encode_init(AVCodecContext *avccontext)
if ((ret = create_vorbis_context(venc, avccontext)) < 0)
goto error;
avccontext->bit_rate = 0;
if (avccontext->flags & CODEC_FLAG_QSCALE)
venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA;
else