Browse Source

libmp3lame: add comments about CBR/VBR modes

tags/n2.3
Timothy Gu Vittorio Giovara 12 years ago
parent
commit
292dbe5e8a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/libmp3lame.c

+ 2
- 2
libavcodec/libmp3lame.c View File

@@ -110,11 +110,11 @@ static av_cold int mp3lame_encode_init(AVCodecContext *avctx)
lame_set_quality(s->gfp, avctx->compression_level);

/* rate control */
if (avctx->flags & CODEC_FLAG_QSCALE) {
if (avctx->flags & CODEC_FLAG_QSCALE) { // VBR
lame_set_VBR(s->gfp, vbr_default);
lame_set_VBR_quality(s->gfp, avctx->global_quality / (float)FF_QP2LAMBDA);
} else {
if (avctx->bit_rate)
if (avctx->bit_rate) // CBR
lame_set_brate(s->gfp, avctx->bit_rate / 1000);
}



Loading…
Cancel
Save