Skip to content

Commit

Permalink
avcodec/aacenc: dont use global quality if its negative
Browse files Browse the repository at this point in the history
Some applications used a negative value as default for "not set"

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed May 24, 2014
1 parent 81aa0f4 commit 9a7d332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/aacenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9a7d332

Please sign in to comment.