[FFmpeg-cvslog] vorbisenc: set AVCodecContext.bit_rate to 0

Justin Ruggles git at videolan.org
Thu Aug 23 14:41:50 CEST 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Aug 20 13:35:48 2012 -0400| [a0a5fed908a2f36d64e2b99673475d85b4c49430] | committer: Justin Ruggles

vorbisenc: set AVCodecContext.bit_rate to 0

The Vorbis encoder is always VBR.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0a5fed908a2f36d64e2b99673475d85b4c49430
---

 libavcodec/vorbisenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c
index cdb3af0..b0e0e68 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



More information about the ffmpeg-cvslog mailing list