[FFmpeg-devel] [PATCH] libavfilter/af_biquads: warn about clipping only after frame with clipping
Sergey Kudryashov
skudryas at gmail.com
Thu Jan 12 16:38:58 EET 2017
---
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);
--
1.9.1
More information about the ffmpeg-devel
mailing list