From a5b28b271af3b5f657ecd6fade7c48c62f1fb2f7 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 18 Nov 2018 20:13:55 +0100 Subject: [PATCH] avfilter/af_acrossover: use av_strtod() to parse single number --- libavfilter/af_acrossover.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c index 9acf3f14e4..3ccc4d72f6 100644 --- a/libavfilter/af_acrossover.c +++ b/libavfilter/af_acrossover.c @@ -26,6 +26,7 @@ #include "libavutil/attributes.h" #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" +#include "libavutil/eval.h" #include "libavutil/internal.h" #include "libavutil/opt.h" @@ -95,8 +96,7 @@ static av_cold int init(AVFilterContext *ctx) p = NULL; - ret = sscanf(arg, "%f", &freq); - + av_sscanf(arg, "%f", &freq); if (freq <= 0) { av_log(ctx, AV_LOG_ERROR, "Frequency %f must be positive number.\n", freq); return AVERROR(EINVAL);