aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2013-10-23 20:57:36 -0700
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-03-31 01:11:16 +0200
commit292dbe5e8a95d38c1324b0432fbaca67f8fe4b73 (patch)
treef8f6b7a8131926f24569486a411ac88f1fcccf6d /libavcodec
parent729d821fd864a0568f4068e64d3a70faa23b9309 (diff)
downloadffmpeg-292dbe5e8a95d38c1324b0432fbaca67f8fe4b73.tar.gz
libmp3lame: add comments about CBR/VBR modes
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libmp3lame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 6da68ad3b7..fbb40321b9 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -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);
}