Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-01-01 15:11:52 +0300
committerPaul B Mahol <onemda@gmail.com>2020-01-01 15:44:22 +0300
commit7bb09e57e0657dfd0b63a81130329775afaf4e7a (patch)
tree28954d51264e3f662bce67bed726512f243bb92c /libavfilter/af_dynaudnorm.c
parentd7e2a2bb35e394287b3e3dc27744830bf0b7ca99 (diff)
avfilter/af_dynaudnorm: do not error out if even filter size was given
Instead issue a warning and make filter size odd number.
Diffstat (limited to 'libavfilter/af_dynaudnorm.c')
-rw-r--r--libavfilter/af_dynaudnorm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c
index 639503384e..bc573d3482 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;