From 034a9d2507e124c7fd9269afbbbdc8b1b7b70e88 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 8 Jul 2019 16:29:15 +0200 Subject: [PATCH] avfilter/af_biquads: clip gain picked from command to sane values --- libavfilter/af_biquads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c index 64b7bb39e53..247a47256fc 100644 --- a/libavfilter/af_biquads.c +++ b/libavfilter/af_biquads.c @@ -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; -- 2.39.2