History

avfilter/af_biquads: clip gain picked from command to sane values

Paul B Mahol committed 7 years ago

Commit 034a9d21 parent 7b2d39f1 file · +1 −1Browse files

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

Unified · Split

libavfilter/af_biquads.c+1−1
@@ -538,7 +538,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar · 537 unmodified lines
538538 return AVERROR(EINVAL);
539539 }
540540
541− s->gain = gain;
541+ s->gain = av_clipd(gain, -900, 900);
542542 } else if (!strcmp(cmd, "mix") || !strcmp(cmd, "m")) {
543543 double mix;
544544

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