From 8ddb82fd757baad5d04704436864a8862ac7971b Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 21 Feb 2026 16:27:47 +0100 Subject: [PATCH] avformat/lafdec: Fix shadowing Signed-off-by: Andreas Rheinhardt --- libavformat/lafdec.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libavformat/lafdec.c b/libavformat/lafdec.c index e641d4b6ee..f9d90595ae 100644 --- a/libavformat/lafdec.c +++ b/libavformat/lafdec.c @@ -199,13 +199,8 @@ again: uint8_t val = s->header[i]; for (int j = 0; j < 8 && cur_st < ctx->nb_streams; j++, cur_st++) { - StreamParams *stp = &s->p[st_index]; - - stp->stored = 0; - if (val & 1) { - stp->stored = 1; - st_count++; - } + s->p[st_index].stored = val & 1; + st_count += val & 1; val >>= 1; st_index++; }