This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit f3b95e698d44ec1b2fe029d3a66257ab85c95490
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 13 05:31:14 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Tue Oct 20 20:41:50 2026 +0000

    avfilter/vf_lcevc: free the input frame when sending it to the decoder fails
    
    Fixes: qchet66gqCBs
    Fixes: memleak
    Memleak Replicated through UnModified FFmpeg with LSan, 
LCEVC_SendDecoderBase() failing through an LD_PRELOAD shim
    Found during triage of the review of 
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24765
---
 libavfilter/vf_lcevc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_lcevc.c b/libavfilter/vf_lcevc.c
index 4ccd5ba659..01e5ded900 100644
--- a/libavfilter/vf_lcevc.c
+++ b/libavfilter/vf_lcevc.c
@@ -350,8 +350,10 @@ static int activate(AVFilterContext *ctx)
         }
 
         ret = send_frame(inlink, in);
-        if (ret < 0)
+        if (ret < 0) {
+            av_frame_free(&in);
             return ret;
+        }
     }
 
     out = ff_get_video_buffer(outlink, lcevc->w, lcevc->h);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to