diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-08-12 00:26:50 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-08-12 00:26:50 +0200 |
commit | 3e04f5357100346dd42c979d3ebcbc69d3c8d2a8 (patch) | |
tree | 163c727a0a49dcade3ed412e32b13f3a6c559a5f /libavfilter/af_adeclick.c | |
parent | 3d85892052607fda3da8e2b3f8958982e669b22e (diff) |
avfilter/af_adeclick: stop outputing pointless message
Diffstat (limited to 'libavfilter/af_adeclick.c')
-rw-r--r-- | libavfilter/af_adeclick.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavfilter/af_adeclick.c b/libavfilter/af_adeclick.c index 328c347b36..fad6bc5913 100644 --- a/libavfilter/af_adeclick.c +++ b/libavfilter/af_adeclick.c @@ -734,9 +734,10 @@ static av_cold void uninit(AVFilterContext *ctx) AudioDeclickContext *s = ctx->priv; int i; - av_log(ctx, AV_LOG_INFO, "Detected %s in %"PRId64" of %"PRId64" samples (%g%%).\n", - s->is_declip ? "clips" : "clicks", s->detected_errors, - s->nb_samples, 100. * s->detected_errors / s->nb_samples); + if (s->nb_samples > 0) + av_log(ctx, AV_LOG_INFO, "Detected %s in %"PRId64" of %"PRId64" samples (%g%%).\n", + s->is_declip ? "clips" : "clicks", s->detected_errors, + s->nb_samples, 100. * s->detected_errors / s->nb_samples); av_audio_fifo_free(s->fifo); av_audio_fifo_free(s->efifo); |