aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-24 20:32:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-24 20:32:37 +0200
commit9a7d332b923b26cd876d33d6a20021a8eee2863f (patch)
tree718391c22fdbef06578735aadd0870d5488e9968
parent81aa0f4604f98da692f2689c84968f90354a92ea (diff)
downloadffmpeg-9a7d332b923b26cd876d33d6a20021a8eee2863f.tar.gz
avcodec/aacenc: dont use global quality if its negative
Some applications used a negative value as default for "not set" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/aacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 5596b4bfad..499aefb9fe 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -769,7 +769,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
if (HAVE_MIPSDSPR1)
ff_aac_coder_init_mips(s);
- s->lambda = avctx->global_quality ? avctx->global_quality : 120;
+ s->lambda = avctx->global_quality > 0 ? avctx->global_quality : 120;
ff_aac_tableinit();