avfilter/af_adeclick: stop outputing pointless message

This commit is contained in:
Paul B Mahol 2023-08-12 00:26:50 +02:00
parent 3d85892052
commit 3e04f53571

View File

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