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 66a8c37582 scale_d3d11: Fix hw_frame_ctx reference leak
66a8c37582 is described below
commit 66a8c3758216736cb0cc0b9123f0514eb2627d2f
Author: Dan Dennedy <[email protected]>
AuthorDate: Fri Dec 12 11:08:32 2025 -0800
Commit: michaelni <[email protected]>
CommitDate: Fri Jul 31 13:29:24 2026 +0000
scale_d3d11: Fix hw_frame_ctx reference leak
This fixes #20995. The reference is taken twice and assigned to the same
pointer (see above in the same function). Only the latter is needed.
---
libavfilter/vf_scale_d3d11.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/libavfilter/vf_scale_d3d11.c b/libavfilter/vf_scale_d3d11.c
index 549aba547d..1203111c49 100644
--- a/libavfilter/vf_scale_d3d11.c
+++ b/libavfilter/vf_scale_d3d11.c
@@ -341,13 +341,6 @@ static int scale_d3d11_config_props(AVFilterLink *outlink)
return AVERROR(EINVAL);
}
- ///< Propagate hw_frames_ctx to output
- outl->hw_frames_ctx = av_buffer_ref(inl->hw_frames_ctx);
- if (!outl->hw_frames_ctx) {
- av_log(ctx, AV_LOG_ERROR, "Failed to propagate hw_frames_ctx to
output\n");
- return AVERROR(ENOMEM);
- }
-
///< Initialize filter's hardware device context
if (!s->hw_device_ctx) {
AVHWFramesContext *in_frames_ctx = (AVHWFramesContext
*)inl->hw_frames_ctx->data;
@@ -395,6 +388,7 @@ static int scale_d3d11_config_props(AVFilterLink *outlink)
return ret;
}
+ ///< Propagate hw_frames_ctx to output
outl->hw_frames_ctx = av_buffer_ref(s->hw_frames_ctx_out);
if (!outl->hw_frames_ctx)
return AVERROR(ENOMEM);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]