PR #25071 opened by romainhedouin
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25071
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25071.patch

frame->width was assigned twice in a row in ffmal_copy_frame().

Signed-off-by: romainhedouin <[email protected]>

# Summary of changes

Briefly describe what this PR does and why.

<!--
If this PR requires new FATE test samples, attach them to the PR and
list their target paths below (relative to the fate-suite root).

Attached filenames must match the sample's filename:

```fate-samples
# e.g. vorbis/new-sample.ogg
```
-->



>From 949bd8765bea423652eb670563fe8cc2b126a495 Mon Sep 17 00:00:00 2001
From: romainhedouin <[email protected]>
Date: Wed, 14 Oct 2026 20:02:06 +0200
Subject: [PATCH] avcodec/mmaldec: Remove duplicate assignment of frame->width

frame->width was assigned twice in a row in ffmal_copy_frame().

Signed-off-by: romainhedouin <[email protected]>
---
 libavcodec/mmaldec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index e42591110f..0b2f57a51f 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -659,7 +659,6 @@ static int ffmal_copy_frame(AVCodecContext *avctx,  AVFrame 
*frame,
 
     frame->sample_aspect_ratio = avctx->sample_aspect_ratio;
     frame->width  = avctx->width;
-    frame->width  = avctx->width;
     frame->height = avctx->height;
     frame->format = avctx->pix_fmt;
 
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to