History

avfilter/af_dynaudnorm: do not error out if even filter size was given

Instead issue a warning and make filter size odd number.

Paul B Mahol committed 6 years ago

Commit 7bb09e51 parent d7e2a2b1 file · +2 −2Browse files

Unified · Split

libavfilter/af_dynaudnorm.c+2−2
@@ -110,8 +110,8 @@ static av_cold int init(AVFilterContext *ctx) · 109 unmodified lines
110110 DynamicAudioNormalizerContext *s = ctx->priv;
111111
112112 if (!(s->filter_size & 1)) {
113− av_log(ctx, AV_LOG_ERROR, "filter size %d is invalid. Must be an odd value.\n", s->filter_size);
114− return AVERROR(EINVAL);
113+ av_log(ctx, AV_LOG_WARNING, "filter size %d is invalid. Changing to an odd value.\n", s->filter_size);
114+ s->filter_size |= 1;
115115 }
116116
117117 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t