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

pull/247/head
Sergey Kudryashov 8 years ago committed by Paul B Mahol
parent f7191ccad6
commit a9b33b5a37
  1. 1
      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);

Loading…
Cancel
Save