Commit 9a7d332b authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/aacenc: dont use global quality if its negative

Some applications used a negative value as default for "not set"
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 81aa0f46
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment