History

avfilter/af_compand: change error condition into warning

Paul B Mahol committed 7 years ago

Commit 1232e671 parent f8ad2dd1 file · +4 −3Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_compand.c+4−3
@@ -349,9 +349,10 @@ static int config_output(AVFilterLink *outlink) · 348 unmodified lines
349 }349 }
350 350
351 if (nb_attacks > channels || nb_decays > channels) {351 if (nb_attacks > channels || nb_decays > channels) {
352 av_log(ctx, AV_LOG_ERROR,352 av_log(ctx, AV_LOG_WARNING,
353 "Number of attacks/decays bigger than number of channels.\n");353 "Number of attacks/decays bigger than number of channels. Ignoring rest of entries.\n");
354 return AVERROR(EINVAL);354 nb_attacks = FFMIN(nb_attacks, channels);
355 nb_decays = FFMIN(nb_decays, channels);
355 }356 }
356 357
357 uninit(ctx);358 uninit(ctx);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t