[FFmpeg-devel] [PATCH 35/60] avcodec/eatgq: fix variable shadowing
Marvin Scholz
epirat07 at gmail.com
Mon Sep 9 01:39:01 EEST 2024
---
libavcodec/eatgq.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c
index d326c05390..b760f29243 100644
--- a/libavcodec/eatgq.c
+++ b/libavcodec/eatgq.c
@@ -154,19 +154,19 @@ static void tgq_idct_put_mb_dconly(TgqContext *s, AVFrame *frame,
static int tgq_decode_mb(TgqContext *s, GetByteContext *gbyte,
AVFrame *frame, int mb_y, int mb_x)
{
- int mode;
+ int ret, mode;
int i;
int8_t dc[6];
mode = bytestream2_get_byte(gbyte);
if (mode > 12) {
GetBitContext gb;
- int ret = init_get_bits8(&gb, gbyte->buffer, FFMIN(bytestream2_get_bytes_left(gbyte), mode));
+ ret = init_get_bits8(&gb, gbyte->buffer, FFMIN(bytestream2_get_bytes_left(gbyte), mode));
if (ret < 0)
return ret;
for (i = 0; i < 6; i++) {
- int ret = tgq_decode_block(s, s->block[i], &gb);
+ ret = tgq_decode_block(s, s->block[i], &gb);
if (ret < 0)
return ret;
}
--
2.39.3 (Apple Git-146)
More information about the ffmpeg-devel
mailing list