PR #21311 opened by Ramiro Polla (ramiro)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21311
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21311.patch

Fixes fe7fbf3a227


>From 92c2d65136908e2ef511a7738e7de254d5a48cee Mon Sep 17 00:00:00 2001
From: Ramiro Polla <[email protected]>
Date: Wed, 10 Dec 2025 23:52:16 +0100
Subject: [PATCH] avcodec/jpeglsdec: propagate error from
 ff_jpegls_decode_picture()

Fixes fe7fbf3a227
---
 libavcodec/jpeglsdec.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c
index 5f463c9660..6c4c6ad33c 100644
--- a/libavcodec/jpeglsdec.c
+++ b/libavcodec/jpeglsdec.c
@@ -432,7 +432,6 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int 
near,
         width  = s->width * stride;
         cur   += off;
         for (i = 0; i < s->height; i++) {
-            int ret;
             if (s->bits <= 8) {
                 ret = ls_decode_line(state, s, last, cur, t, width, stride, 
off, 8);
                 t = last[0];
@@ -458,7 +457,6 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int 
near,
         memset(cur, 0, s->picture_ptr->linesize[0]);
         width = s->width * stride;
         for (i = 0; i < s->height; i++) {
-            int ret;
             for (j = 0; j < stride; j++) {
                 ret = ls_decode_line(state, s, last + j, cur + j,
                                Rc[j], width, stride, j, 8);
-- 
2.49.1

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

Reply via email to