Skip to content

Commit 3e04f53

Browse files
committed
avfilter/af_adeclick: stop outputing pointless message
1 parent 3d85892 commit 3e04f53

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libavfilter/af_adeclick.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,10 @@ static av_cold void uninit(AVFilterContext *ctx)
734734
AudioDeclickContext *s = ctx->priv;
735735
int i;
736736

737-
av_log(ctx, AV_LOG_INFO, "Detected %s in %"PRId64" of %"PRId64" samples (%g%%).\n",
738-
s->is_declip ? "clips" : "clicks", s->detected_errors,
739-
s->nb_samples, 100. * s->detected_errors / s->nb_samples);
737+
if (s->nb_samples > 0)
738+
av_log(ctx, AV_LOG_INFO, "Detected %s in %"PRId64" of %"PRId64" samples (%g%%).\n",
739+
s->is_declip ? "clips" : "clicks", s->detected_errors,
740+
s->nb_samples, 100. * s->detected_errors / s->nb_samples);
740741

741742
av_audio_fifo_free(s->fifo);
742743
av_audio_fifo_free(s->efifo);

0 commit comments

Comments
 (0)