diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-06-01 10:07:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-06-02 17:30:24 +0200 |
commit | 4b89cf7aa49191c7f8a5ae6e9cf6cfc79ff4ee5e (patch) | |
tree | e0d482c8d776e36c5a7962c789e3f248c485f7ff | |
parent | 6b1268f8c371c2e6efa5c8465b85ae9025254184 (diff) | |
download | ffmpeg-4b89cf7aa49191c7f8a5ae6e9cf6cfc79ff4ee5e.tar.gz |
avcodec/aacenc: Use FLT_EPSILON for lambda minimum
-rw-r--r-- | libavcodec/aacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index e80591ba86..29e76ead92 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -853,7 +853,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, /* Not so fast though */ ratio = sqrtf(ratio); } - s->lambda = av_clipf(s->lambda * ratio, FLT_MIN, 65536.f); + s->lambda = av_clipf(s->lambda * ratio, FLT_EPSILON, 65536.f); /* Keep iterating if we must reduce and lambda is in the sky */ if (ratio > 0.9f && ratio < 1.1f) { |