mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
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>
This commit is contained in:
parent
81aa0f4604
commit
9a7d332b92
@ -769,7 +769,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
|
|||||||
if (HAVE_MIPSDSPR1)
|
if (HAVE_MIPSDSPR1)
|
||||||
ff_aac_coder_init_mips(s);
|
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();
|
ff_aac_tableinit();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user