mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avfilter/af_aecho: use av_sscanf()
This commit is contained in:
parent
f79750bc32
commit
c834f52c00
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user