1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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

This commit is contained in:
Paul B Mahol 2018-11-18 20:13:55 +01:00
parent 96717a4271
commit a5b28b271a

View File

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