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

This commit is contained in:
Paul B Mahol 2019-07-08 16:29:15 +02:00
parent 7b2d39fc27
commit 034a9d2507
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
return AVERROR(EINVAL);
}
s->gain = gain;
s->gain = av_clipd(gain, -900, 900);
} else if (!strcmp(cmd, "mix") || !strcmp(cmd, "m")) {
double mix;