1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/imc: Remove unused-but-set variable

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2022-06-28 12:42:26 +02:00
parent bdaff63723
commit 8f99a72878

View File

@@ -877,7 +877,7 @@ static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch)
int imc_hdr, i, j, ret; int imc_hdr, i, j, ret;
int flag; int flag;
int bits; int bits;
int counter, bitscount; int bitscount;
IMCChannel *chctx = q->chctx + ch; 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)); memcpy(chctx->old_floor, chctx->flcoeffs1, 32 * sizeof(float));
counter = 0;
if (stream_format_code & 0x1) { if (stream_format_code & 0x1) {
for (i = 0; i < BANDS; i++) { for (i = 0; i < BANDS; i++) {
chctx->bandWidthT[i] = band_tab[i + 1] - band_tab[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++) { for (i = 0; i < BANDS; i++) {
if (chctx->levlCoeffBuf[i] == 16) { if (chctx->levlCoeffBuf[i] == 16) {
chctx->bandWidthT[i] = 0; chctx->bandWidthT[i] = 0;
counter++;
} else } else
chctx->bandWidthT[i] = band_tab[i + 1] - band_tab[i]; chctx->bandWidthT[i] = band_tab[i + 1] - band_tab[i];
} }