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

Git pushed a commit to branch master
in repository ffmpeg.

commit b7ad5cfa80457cc3764662c42b1c91d4f23cebdb
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Oct 11 00:01:16 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Oct 12 00:42:48 2026 +0000

    avfilter/vf_pad: free the input frame when reconfiguration fails
    
    Fixes: memleak
---
 libavfilter/vf_pad.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index 8348043e1a..1e8f844b34 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -348,12 +348,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         inlink->dst->inputs[0]->sample_aspect_ratio.num = 
in->sample_aspect_ratio.num;
 
 
-        if ((ret = config_input(inlink)) < 0) {
-            s->inlink_w = -1;
-            return ret;
-        }
-        if ((ret = config_output(outlink)) < 0) {
+        if ((ret = config_input(inlink)) < 0 ||
+            (ret = config_output(outlink)) < 0) {
             s->inlink_w = -1;
+            av_frame_free(&in);
             return ret;
         }
     }

-- 
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