[FFmpeg-cvslog] libavfilter/af_biquads: warn about clipping only after frame with clipping

Sergey Kudryashov git at videolan.org
Thu Jan 12 20:53:46 EET 2017


ffmpeg | branch: master | Sergey Kudryashov <skudryas at gmail.com> | Thu Jan 12 17:38:58 2017 +0300| [a9b33b5a37ad86b111292fe85e5df1a72191e3a5] | committer: Paul B Mahol

libavfilter/af_biquads: warn about clipping only after frame with clipping

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

 libavfilter/af_biquads.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c
index 4953202..79f1b7c 100644
--- a/libavfilter/af_biquads.c
+++ b/libavfilter/af_biquads.c
@@ -420,6 +420,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
 
     if (s->clippings > 0)
         av_log(ctx, AV_LOG_WARNING, "clipping %d times. Please reduce gain.\n", s->clippings);
+    s->clippings = 0;
 
     if (buf != out_buf)
         av_frame_free(&buf);



More information about the ffmpeg-cvslog mailing list