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 0f6ba39122 avfilter/vf_frei0r: guard against NULL string fields.
0f6ba39122 is described below
commit 0f6ba391227e22e478c1e1913f997cd0e9e69d15
Author: Romain Beauxis <[email protected]>
AuthorDate: Fri Apr 24 14:10:56 2026 -0500
Commit: Romain Beauxis <[email protected]>
CommitDate: Thu Apr 30 08:33:31 2026 -0500
avfilter/vf_frei0r: guard against NULL string fields.
---
libavfilter/vf_frei0r.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c
index 66ee71ca1b..722d6dca92 100644
--- a/libavfilter/vf_frei0r.c
+++ b/libavfilter/vf_frei0r.c
@@ -144,7 +144,7 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t
info, int index, cha
fail:
av_log(ctx, AV_LOG_ERROR, "Invalid value '%s' for parameter '%s'.\n",
- param, info.name);
+ param, info.name ? info.name : "(null)");
return AVERROR(EINVAL);
}
@@ -157,7 +157,7 @@ static int set_params(AVFilterContext *ctx, const char
*params)
return 0;
for (i = 0; i < s->plugin_info.num_params; i++) {
- f0r_param_info_t info;
+ f0r_param_info_t info = { 0 };
char *param;
int ret;
@@ -294,7 +294,8 @@ static av_cold int frei0r_init(AVFilterContext *ctx,
av_log(ctx, AV_LOG_VERBOSE,
"name:%s author:'%s' explanation:'%s' color_model:%s "
"frei0r_version:%d version:%d.%d num_params:%d\n",
- pi->name, pi->author, pi->explanation,
+ pi->name ? pi->name : "(null)", pi->author ? pi->author : "(null)",
+ pi->explanation ? pi->explanation : "(null)",
pi->color_model == F0R_COLOR_MODEL_BGRA8888 ? "bgra8888" :
pi->color_model == F0R_COLOR_MODEL_RGBA8888 ? "rgba8888" :
pi->color_model == F0R_COLOR_MODEL_PACKED32 ? "packed32" :
"unknown",
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]