avfilter/vf_mix: use av_sscanf()
authorPaul B Mahol <onemda@gmail.com>
Sun, 18 Nov 2018 19:35:21 +0000 (20:35 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 18 Nov 2018 20:21:18 +0000 (21:21 +0100)
libavfilter/vf_mix.c

index d0cc7cb..f84b9bd 100644 (file)
@@ -108,7 +108,7 @@ static av_cold int init(AVFilterContext *ctx)
             break;
 
         p = NULL;
-        sscanf(arg, "%f", &s->weights[i]);
+        av_sscanf(arg, "%f", &s->weights[i]);
         s->wfactor += s->weights[i];
         last = i;
     }