[FFmpeg-cvslog] avfilter/af_biquads: clip gain picked from command to sane values

Paul B Mahol git at videolan.org
Mon Jul 8 17:32:17 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jul  8 16:29:15 2019 +0200| [034a9d2507e124c7fd9269afbbbdc8b1b7b70e88] | committer: Paul B Mahol

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=034a9d2507e124c7fd9269afbbbdc8b1b7b70e88
---

 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 64b7bb39e5..247a47256f 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;
 



More information about the ffmpeg-cvslog mailing list