From: Paul B Mahol Date: Wed, 1 Jan 2020 12:11:52 +0000 (+0100) Subject: avfilter/af_dynaudnorm: do not error out if even filter size was given X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7bb09e57e0657dfd0b63a81130329775afaf4e7a;p=ffmpeg avfilter/af_dynaudnorm: do not error out if even filter size was given Instead issue a warning and make filter size odd number. --- diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c index 639503384e3..bc573d34823 100644 --- a/libavfilter/af_dynaudnorm.c +++ b/libavfilter/af_dynaudnorm.c @@ -110,8 +110,8 @@ static av_cold int init(AVFilterContext *ctx) DynamicAudioNormalizerContext *s = ctx->priv; if (!(s->filter_size & 1)) { - av_log(ctx, AV_LOG_ERROR, "filter size %d is invalid. Must be an odd value.\n", s->filter_size); - return AVERROR(EINVAL); + av_log(ctx, AV_LOG_WARNING, "filter size %d is invalid. Changing to an odd value.\n", s->filter_size); + s->filter_size |= 1; } return 0;