ffmpeg | branch: master | Paul B Mahol <[email protected]> | Tue Aug 6 13:37:58 2019 +0200| [1232e67b16dd67625f130850a99a4e66d44b5888] | committer: Paul B Mahol
avfilter/af_compand: change error condition into warning > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1232e67b16dd67625f130850a99a4e66d44b5888 --- libavfilter/af_compand.c | 7 ++++--- 1 file 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); _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
