diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-08-20 13:35:48 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-08-22 19:58:46 -0400 |
commit | a0a5fed908a2f36d64e2b99673475d85b4c49430 (patch) | |
tree | e5bd717f1c352894f66b94b2bdf6aedb425766bf | |
parent | 890fddd0ea16aa8fe423820ae83ae1f67978921b (diff) | |
download | ffmpeg-a0a5fed908a2f36d64e2b99673475d85b4c49430.tar.gz |
vorbisenc: set AVCodecContext.bit_rate to 0
The Vorbis encoder is always VBR.
-rw-r--r-- | libavcodec/vorbisenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c index cdb3af059a..b0e0e68c2f 100644 --- a/libavcodec/vorbisenc.c +++ b/libavcodec/vorbisenc.c @@ -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 |