diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-11-18 20:13:55 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-11-18 20:44:27 +0100 |
commit | a5b28b271af3b5f657ecd6fade7c48c62f1fb2f7 (patch) | |
tree | 944033713c5e6941397437436d87cb059e3ed257 /libavfilter/af_acrossover.c | |
parent | 96717a42715fdcc2f93558206e24d6dfd26b8d58 (diff) | |
download | ffmpeg-a5b28b271af3b5f657ecd6fade7c48c62f1fb2f7.tar.gz |
avfilter/af_acrossover: use av_strtod() to parse single number
Diffstat (limited to 'libavfilter/af_acrossover.c')
-rw-r--r-- | libavfilter/af_acrossover.c | 4 |
1 files 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); |