This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 8ffaead836 fftools/ffmpeg_filter: fix frame reference leak in
fg_output_step
8ffaead836 is described below
commit 8ffaead836233b1070bdfa1afeca91ff1d54f656
Author: jiangjie <[email protected]>
AuthorDate: Wed May 13 20:37:15 2026 +0800
Commit: jiangjie <[email protected]>
CommitDate: Wed May 13 14:09:06 2026 +0000
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.
---
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 1240abbde2..38e39d68af 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -2841,8 +2841,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();
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]