Commit a9b33b5a authored by Sergey Kudryashov's avatar Sergey Kudryashov Committed by Paul B Mahol

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

parent f7191cca
...@@ -420,6 +420,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) ...@@ -420,6 +420,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
if (s->clippings > 0) if (s->clippings > 0)
av_log(ctx, AV_LOG_WARNING, "clipping %d times. Please reduce gain.\n", s->clippings); av_log(ctx, AV_LOG_WARNING, "clipping %d times. Please reduce gain.\n", s->clippings);
s->clippings = 0;
if (buf != out_buf) if (buf != out_buf)
av_frame_free(&buf); av_frame_free(&buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment