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

This commit is contained in:
Sergey Kudryashov 2017-01-12 17:38:58 +03:00 committed by Paul B Mahol
parent f7191ccad6
commit a9b33b5a37
1 changed files with 1 additions and 0 deletions

View File

@ -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);