diff options
author | Yotam Ofek <yotam.ofek@gmail.com> | 2024-06-14 10:21:14 +0000 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-07-03 02:51:37 +0200 |
commit | a9c05eb657d0d05f3ac79fe9973581a41b265a5e (patch) | |
tree | 386fd213ce9f2e3666768fa0043df3cfd73f28cf | |
parent | b5ad997e72bcd8c5056e4d16ce6f49df25de1c48 (diff) | |
download | ffmpeg-a9c05eb657d0d05f3ac79fe9973581a41b265a5e.tar.gz |
avcodec/aaccoder_twoloop: remove unread max scaler
-rw-r--r-- | libavcodec/aaccoder_twoloop.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/aaccoder_twoloop.h b/libavcodec/aaccoder_twoloop.h index c1dcdbb5ed..c56abc68a7 100644 --- a/libavcodec/aaccoder_twoloop.h +++ b/libavcodec/aaccoder_twoloop.h @@ -101,7 +101,7 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, */ float sfoffs = av_clipf(log2f(120.0f / lambda) * 4.0f, -5, 10); - int fflag, minscaler, maxscaler, nminscaler; + int fflag, minscaler, nminscaler; int its = 0; int maxits = 30; int allz = 0; @@ -572,12 +572,10 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, } minscaler = SCALE_MAX_POS; - maxscaler = 0; for (w = 0; w < sce->ics.num_windows; w += sce->ics.group_len[w]) { for (g = 0; g < sce->ics.num_swb; g++) { if (!sce->zeroes[w*16+g]) { minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]); - maxscaler = FFMAX(maxscaler, sce->sf_idx[w*16+g]); } } } |