* [FFmpeg-devel] [PATCH 1/2] avcodec/dxa: Remove set-but-unused variable
@ 2025-03-29 1:16 Andreas Rheinhardt
0 siblings, 0 replies; only message in thread
From: Andreas Rheinhardt @ 2025-03-29 1:16 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1: Type: text/plain, Size: 29 bytes --]
Patches attached.
- Andreas
[-- Attachment #2: 0001-avcodec-dxa-Remove-set-but-unused-variable.patch --]
[-- Type: text/x-patch, Size: 1106 bytes --]
From 29e7584aae625e07c19f43dc395a40ba9486f9d8 Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <andreas.rheinhardt@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.rheinhardt@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
[-- Attachment #3: 0002-avcodec-ffv1dec-Fix-declaration-after-statement-warn.patch --]
[-- Type: text/x-patch, Size: 1212 bytes --]
From 66a7ab99bdfe70e8e9af4c38c439adb17f97c758 Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <andreas.rheinhardt@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.rheinhardt@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
[-- Attachment #4: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-29 1:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-29 1:16 [FFmpeg-devel] [PATCH 1/2] avcodec/dxa: Remove set-but-unused variable Andreas Rheinhardt
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git