summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-08-06 13:37:58 +0200
committerPaul B Mahol <onemda@gmail.com>2019-08-28 15:28:53 +0200
commit1232e67b16dd67625f130850a99a4e66d44b5888 (patch)
tree539071909dd181ba0a1a0ed4e5ebff72eed66c20 /libavfilter
parentf8ad2ddd7a51df5d6e768ba2a6f65ee64b94e29b (diff)
downloadffmpeg-streaming-1232e67b16dd67625f130850a99a4e66d44b5888.zip
ffmpeg-streaming-1232e67b16dd67625f130850a99a4e66d44b5888.tar.gz
avfilter/af_compand: change error condition into warning
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_compand.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c
index c138f0b..d4a816d 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);
OpenPOWER on IntegriCloud