diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-08-06 13:37:58 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-08-28 15:28:53 +0200 |
commit | 1232e67b16dd67625f130850a99a4e66d44b5888 (patch) | |
tree | 539071909dd181ba0a1a0ed4e5ebff72eed66c20 | |
parent | f8ad2ddd7a51df5d6e768ba2a6f65ee64b94e29b (diff) | |
download | ffmpeg-1232e67b16dd67625f130850a99a4e66d44b5888.tar.gz |
avfilter/af_compand: change error condition into warning
-rw-r--r-- | libavfilter/af_compand.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index c138f0b1d8..d4a816d135 100644 --- a/libavfilter/af_compand.c +++ b/libavfilter/af_compand.c @@ -349,9 +349,10 @@ static int config_output(AVFilterLink *outlink) } 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); |