Patches attached. - Andreas
From 29e7584aae625e07c19f43dc395a40ba9486f9d8 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinha...@outlook.com> Date: Sat, 29 Mar 2025 02:07:32 +0100 Subject: [PATCH 1/2] avcodec/dxa: Remove set-but-unused variable
Forgotten in 6e80ec9dc5d7ea83c3abac641aa08ad7849c9e98. Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> --- libavcodec/dxa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c index 3a53d3496e..5b429781df 100644 --- a/libavcodec/dxa.c +++ b/libavcodec/dxa.c @@ -213,7 +213,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, unsigned long dsize; int i, j, compr, ret; int stride; - int pc = 0; GetByteContext gb; bytestream2_init(&gb, avpkt->data, avpkt->size); @@ -224,7 +223,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, for(i = 0; i < 256; i++){ c->pal[i] = 0xFFU << 24 | bytestream2_get_be24(&gb); } - pc = 1; } if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0) -- 2.45.2
From 66a7ab99bdfe70e8e9af4c38c439adb17f97c758 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinha...@outlook.com> Date: Sat, 29 Mar 2025 02:11:49 +0100 Subject: [PATCH 2/2] avcodec/ffv1dec: Fix declaration-after-statement warning Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> --- libavcodec/ffv1dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index 3395f514f4..7d603cce4d 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -294,7 +294,7 @@ static int decode_remap(FFV1Context *f, FFV1SliceContext *sc) int lu = 0; uint8_t state[2][3][32]; int64_t i; - int mul[4096+1]; + int mul[4096+1], current_mul; int mul_count; memset(state, 128, sizeof(state)); @@ -309,7 +309,7 @@ static int decode_remap(FFV1Context *f, FFV1SliceContext *sc) mul[mul_count] = 1; memset(state, 128, sizeof(state)); - int current_mul = 1; + current_mul = 1; for (i=0; i <= end ;) { unsigned run = get_symbol_inline(&sc->c, state[lu][0], 0); unsigned run0 = lu ? 0 : run; -- 2.45.2
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".