Browse Source

avfilter/af_compand: change error condition into warning

tags/n4.3
Paul B Mahol 5 years ago
parent
commit
1232e67b16
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      libavfilter/af_compand.c

+ 4
- 3
libavfilter/af_compand.c View File

@@ -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,
"Number of attacks/decays bigger than number of channels.\n");
return AVERROR(EINVAL);
av_log(ctx, AV_LOG_WARNING,
"Number of attacks/decays bigger than number of channels. Ignoring rest of entries.\n");
nb_attacks = FFMIN(nb_attacks, channels);
nb_decays = FFMIN(nb_decays, channels);
} }


uninit(ctx); uninit(ctx);


Loading…
Cancel
Save