avfilter/af_biquads: clip gain picked from command to sane values
authorPaul B Mahol <onemda@gmail.com>
Mon, 8 Jul 2019 14:29:15 +0000 (16:29 +0200)
committerPaul B Mahol <onemda@gmail.com>
Mon, 8 Jul 2019 14:29:15 +0000 (16:29 +0200)
libavfilter/af_biquads.c

index 64b7bb3..247a472 100644 (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;