mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
avfilter/af_compand: change error condition into warning
This commit is contained in:
parent
f8ad2ddd7a
commit
1232e67b16
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue