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 0dd50ec535 avfilter/dnn: initialize DNNData at the config_input call
sites
0dd50ec535 is described below
commit 0dd50ec5353ce61f7e2c75a44036de8b8338b055
Author: younengxiao <[email protected]>
AuthorDate: Thu Jul 30 12:43:23 2026 -0400
Commit: guoyejun <[email protected]>
CommitDate: Fri Jul 31 13:21:29 2026 +0000
avfilter/dnn: initialize DNNData at the config_input call sites
vf_dnn_processing.c and vf_dnn_detect.c both declare an uninitialized
DNNData model_input before using it. This commit initialize it.
Signed-off-by: younengxiao <[email protected]>
---
libavfilter/vf_dnn_detect.c | 2 +-
libavfilter/vf_dnn_processing.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c
index 81487ba14b..8ce51bf07d 100644
--- a/libavfilter/vf_dnn_detect.c
+++ b/libavfilter/vf_dnn_detect.c
@@ -794,7 +794,7 @@ static int config_input(AVFilterLink *inlink)
{
AVFilterContext *context = inlink->dst;
DnnDetectContext *ctx = context->priv;
- DNNData model_input;
+ DNNData model_input = { 0 };
int ret, width_idx, height_idx;
ret = ff_dnn_get_input(&ctx->dnnctx, &model_input);
diff --git a/libavfilter/vf_dnn_processing.c b/libavfilter/vf_dnn_processing.c
index 7ffa700cc5..4f1c05dc63 100644
--- a/libavfilter/vf_dnn_processing.c
+++ b/libavfilter/vf_dnn_processing.c
@@ -145,7 +145,7 @@ static int config_input(AVFilterLink *inlink)
AVFilterContext *context = inlink->dst;
DnnProcessingContext *ctx = context->priv;
int result;
- DNNData model_input;
+ DNNData model_input = { 0 };
int check;
result = ff_dnn_get_input(&ctx->dnnctx, &model_input);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]