summaryrefslogtreecommitdiff
path: root/libavcodec/imc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-28 12:42:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-03 11:41:23 +0200
commit8f99a728786a94926c848573fc0bb6e3099b81b9 (patch)
tree872f2511686aa27f4485c43171dd0e4db17d72fb /libavcodec/imc.c
parentbdaff637234a247ad53015e28692105e6aa1d833 (diff)
avcodec/imc: Remove unused-but-set variable
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/imc.c')
-rw-r--r--libavcodec/imc.c4
1 files changed, 1 insertions, 3 deletions
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];
}