diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-11-18 20:32:28 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-11-18 21:21:18 +0100 |
commit | 9b2c325060c7d04c88374fcad0fbff364976915a (patch) | |
tree | 4ef03d5852b25d33e37c8c8377c44c59515c5e69 /libavfilter/af_sofalizer.c | |
parent | 80265dba3de1dae6c3cbdf24a6fa0ce36f7b389c (diff) | |
download | ffmpeg-9b2c325060c7d04c88374fcad0fbff364976915a.tar.gz |
avfilter/af_sofalizer: use av_sscanf()
Diffstat (limited to 'libavfilter/af_sofalizer.c')
-rw-r--r-- | libavfilter/af_sofalizer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c index d9098d7679..502dd0159a 100644 --- a/libavfilter/af_sofalizer.c +++ b/libavfilter/af_sofalizer.c @@ -136,7 +136,7 @@ static int parse_channel_name(char **arg, int *rchannel, char *buf) int64_t layout, layout0; /* try to parse a channel name, e.g. "FL" */ - if (sscanf(*arg, "%7[A-Z]%n", buf, &len)) { + if (av_sscanf(*arg, "%7[A-Z]%n", buf, &len)) { layout0 = layout = av_get_channel_layout(buf); /* channel_id <- first set bit in layout */ for (i = 32; i > 0; i >>= 1) { @@ -174,11 +174,11 @@ static void parse_speaker_pos(AVFilterContext *ctx, int64_t in_channel_layout) av_log(ctx, AV_LOG_WARNING, "Failed to parse \'%s\' as channel name.\n", buf); continue; } - if (sscanf(arg, "%f %f", &azim, &elev) == 2) { + if (av_sscanf(arg, "%f %f", &azim, &elev) == 2) { s->vspkrpos[out_ch_id].set = 1; s->vspkrpos[out_ch_id].azim = azim; s->vspkrpos[out_ch_id].elev = elev; - } else if (sscanf(arg, "%f", &azim) == 1) { + } else if (av_sscanf(arg, "%f", &azim) == 1) { s->vspkrpos[out_ch_id].set = 1; s->vspkrpos[out_ch_id].azim = azim; s->vspkrpos[out_ch_id].elev = 0; |