diff mbox series

[FFmpeg-devel,5/8] avcodec/imc: Remove unused-but-set variable

Message ID DB6PR0101MB221427E1972A98CC095F10C78FB89@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com
State Accepted
Commit 8f99a728786a94926c848573fc0bb6e3099b81b9
Headers show
Series [FFmpeg-devel,1/8] avformat/bintext: Remove set-but-unused variable | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt June 28, 2022, 11:30 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/imc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index 94b9ac674c..978ea74b74 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -877,7 +877,7 @@  static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch)
     int imc_hdr, i, j, ret;
     int flag;
     int bits;
-    int counter, bitscount;
+    int bitscount;
     IMCChannel *chctx = q->chctx + ch;
 
 
@@ -926,7 +926,6 @@  static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch)
 
     memcpy(chctx->old_floor, chctx->flcoeffs1, 32 * sizeof(float));
 
-    counter = 0;
     if (stream_format_code & 0x1) {
         for (i = 0; i < BANDS; i++) {
             chctx->bandWidthT[i]   = band_tab[i + 1] - band_tab[i];
@@ -938,7 +937,6 @@  static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch)
         for (i = 0; i < BANDS; i++) {
             if (chctx->levlCoeffBuf[i] == 16) {
                 chctx->bandWidthT[i] = 0;
-                counter++;
             } else
                 chctx->bandWidthT[i] = band_tab[i + 1] - band_tab[i];
         }