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

Paul B Mahol onemda at gmail.com
Thu Jan 12 20:51:41 EET 2017


On 1/12/17, Sergey Kudryashov <skudryas at gmail.com> wrote:
> ---
>  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

applied


More information about the ffmpeg-devel mailing list