Commit 1232e67b authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_compand: change error condition into warning

parent f8ad2ddd
...@@ -349,9 +349,10 @@ static int config_output(AVFilterLink *outlink) ...@@ -349,9 +349,10 @@ static int config_output(AVFilterLink *outlink)
} }
if (nb_attacks > channels || nb_decays > channels) { if (nb_attacks > channels || nb_decays > channels) {
av_log(ctx, AV_LOG_ERROR, av_log(ctx, AV_LOG_WARNING,
"Number of attacks/decays bigger than number of channels.\n"); "Number of attacks/decays bigger than number of channels. Ignoring rest of entries.\n");
return AVERROR(EINVAL); nb_attacks = FFMIN(nb_attacks, channels);
nb_decays = FFMIN(nb_decays, channels);
} }
uninit(ctx); uninit(ctx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment