From 72482363d1b738156e99cef51bba20b5674a6ed2 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 18 Nov 2018 20:41:04 +0100 Subject: [PATCH] avfilter/f_drawgraph: use av_sscanf() --- libavfilter/f_drawgraph.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/f_drawgraph.c b/libavfilter/f_drawgraph.c index f49d5b8022..955047368d 100644 --- a/libavfilter/f_drawgraph.c +++ b/libavfilter/f_drawgraph.c @@ -20,6 +20,7 @@ #include "float.h" +#include "libavutil/avstring.h" #include "libavutil/eval.h" #include "libavutil/intreadwrite.h" #include "libavutil/opt.h" @@ -215,7 +216,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) if (!e || !e->value) continue; - if (sscanf(e->value, "%f", &vf) != 1) + if (av_sscanf(e->value, "%f", &vf) != 1) continue; vf = av_clipf(vf, s->min, s->max);