summaryrefslogtreecommitdiff
path: root/libavfilter/af_afftdn.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-11-18 20:22:40 +0100
committerPaul B Mahol <onemda@gmail.com>2018-11-18 21:21:18 +0100
commit80265dba3de1dae6c3cbdf24a6fa0ce36f7b389c (patch)
tree0c6ab4d4f36a2f1acc42ead443f85d540dc14b12 /libavfilter/af_afftdn.c
parent0c7fb6e4a0354b66caa03b5f5e02f19a4cc0649e (diff)
avfilter/af_afftdn: use av_sscanf()
Diffstat (limited to 'libavfilter/af_afftdn.c')
-rw-r--r--libavfilter/af_afftdn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c
index ed2c1c1def..9619aadbee 100644
--- a/libavfilter/af_afftdn.c
+++ b/libavfilter/af_afftdn.c
@@ -564,7 +564,7 @@ static void read_custom_noise(AudioFFTDeNoiseContext *s, int ch)
p = NULL;
- ret = sscanf(arg, "%d", &band_noise[i]);
+ ret = av_sscanf(arg, "%d", &band_noise[i]);
if (ret != 1) {
av_log(s, AV_LOG_ERROR, "Custom band noise must be integer.\n");
break;
@@ -1390,7 +1390,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
!strcmp(cmd, "noise_reduction")) {
float nr;
- if (sscanf(args, "%f", &nr) == 1) {
+ if (av_sscanf(args, "%f", &nr) == 1) {
s->noise_reduction = av_clipf(nr, 0.01, 97);
need_reset = 1;
}
@@ -1398,7 +1398,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
!strcmp(cmd, "noise_floor")) {
float nf;
- if (sscanf(args, "%f", &nf) == 1) {
+ if (av_sscanf(args, "%f", &nf) == 1) {
s->noise_floor = av_clipf(nf, -80, -20);
need_reset = 1;
}