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

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit 61b18c9aa5ae0af401ade293a37b0d7ea1da4228
Author:     jiangjie <[email protected]>
AuthorDate: Wed May 13 20:37:15 2026 +0800
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 29 20:34:45 2026 +0100

    fftools/ffmpeg_filter: fix frame reference leak in fg_output_step
    
    When clone_side_data() fails in fg_output_step(), the function returns
    without calling av_frame_unref(frame), leaking the frame reference.
    
    (cherry picked from commit 8ffaead836233b1070bdfa1afeca91ff1d54f656)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 fftools/ffmpeg_filter.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index eda21e5cfe..d76a9a1a9a 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -2840,8 +2840,10 @@ static int fg_output_step(OutputFilterPriv *ofp, 
FilterGraphThread *fgt,
     if (!fgt->got_frame) {
         ret = clone_side_data(&fd->side_data, &fd->nb_side_data,
                               ofp->side_data, ofp->nb_side_data, 0);
-        if (ret < 0)
+        if (ret < 0) {
+            av_frame_unref(frame);
             return ret;
+        }
     }
 
     fd->wallclock[LATENCY_PROBE_FILTER_POST] = av_gettime_relative();

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