Browse Source

vorbisenc: set AVCodecContext.bit_rate to 0

The Vorbis encoder is always VBR.
tags/n1.0
Justin Ruggles 13 years ago
parent
commit
a0a5fed908
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vorbisenc.c

+ 1
- 0
libavcodec/vorbisenc.c 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


Loading…
Cancel
Save