[FFmpeg-cvslog] avfilter/af_acrossover: use av_strtod() to parse single number

Paul B Mahol git at videolan.org
Sun Nov 18 22:24:36 EET 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Nov 18 20:13:55 2018 +0100| [a5b28b271af3b5f657ecd6fade7c48c62f1fb2f7] | committer: Paul B Mahol

avfilter/af_acrossover: use av_strtod() to parse single number

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5b28b271af3b5f657ecd6fade7c48c62f1fb2f7
---

 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);



More information about the ffmpeg-cvslog mailing list