[FFmpeg-cvslog] avfilter/af_aiir: use av_sscanf()
Paul B Mahol
git at videolan.org
Sat Oct 17 19:46:46 EEST 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Oct 17 18:30:27 2020 +0200| [f372ce35f24b27c1703d009ea0a5ee14127c6d6e] | committer: Paul B Mahol
avfilter/af_aiir: use av_sscanf()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f372ce35f24b27c1703d009ea0a5ee14127c6d6e
---
libavfilter/af_aiir.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c
index f5e5dbb036..f6ca2438d7 100644
--- a/libavfilter/af_aiir.c
+++ b/libavfilter/af_aiir.c
@@ -332,7 +332,7 @@ static int read_gains(AVFilterContext *ctx, char *item_str, int nb_items)
}
p = NULL;
- if (sscanf(arg, "%lf", &s->iir[i].g) != 1) {
+ if (av_sscanf(arg, "%lf", &s->iir[i].g) != 1) {
av_log(ctx, AV_LOG_ERROR, "Invalid gains supplied: %s\n", arg);
av_freep(&old_str);
return AVERROR(EINVAL);
@@ -359,7 +359,7 @@ static int read_tf_coefficients(AVFilterContext *ctx, char *item_str, int nb_ite
break;
p = NULL;
- if (sscanf(arg, "%lf", &dst[i]) != 1) {
+ if (av_sscanf(arg, "%lf", &dst[i]) != 1) {
av_log(ctx, AV_LOG_ERROR, "Invalid coefficients supplied: %s\n", arg);
av_freep(&old_str);
return AVERROR(EINVAL);
@@ -384,7 +384,7 @@ static int read_zp_coefficients(AVFilterContext *ctx, char *item_str, int nb_ite
break;
p = NULL;
- if (sscanf(arg, format, &dst[i*2], &dst[i*2+1]) != 2) {
+ if (av_sscanf(arg, format, &dst[i*2], &dst[i*2+1]) != 2) {
av_log(ctx, AV_LOG_ERROR, "Invalid coefficients supplied: %s\n", arg);
av_freep(&old_str);
return AVERROR(EINVAL);
More information about the ffmpeg-cvslog
mailing list