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

index b9ac18d..876a149 100644 (file)
@@ -78,7 +78,7 @@ static void fill_items(char *item_str, int *nb_items, float *items)
         char *tstr = av_strtok(p, "|", &saveptr);
         p = NULL;
         if (tstr)
-            new_nb_items += sscanf(tstr, "%f", &items[new_nb_items]) == 1;
+            new_nb_items += av_sscanf(tstr, "%f", &items[new_nb_items]) == 1;
     }
 
     *nb_items = new_nb_items;