]> git.sesse.net Git - ffmpeg/commitdiff
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 64b7bb39e53f0e81803e5fc8855a6a39a9dac00b..247a47256fc77a6134a996804e859037b3afc4fa 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;