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
349349 }
350350
351351 if (nb_attacks > channels || nb_decays > channels) {
352− av_log(ctx, AV_LOG_ERROR,
353− "Number of attacks/decays bigger than number of channels.\n");
354− return AVERROR(EINVAL);
352+ av_log(ctx, AV_LOG_WARNING,
353+ "Number of attacks/decays bigger than number of channels. Ignoring rest of entries.\n");
354+ nb_attacks = FFMIN(nb_attacks, channels);
355+ nb_decays = FFMIN(nb_decays, channels);
355356 }
356357
357358 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