History

avfilter/af_adeclick: stop outputing pointless message

Paul B Mahol committed 3 years ago

Commit 3e04f531 parent 3d858921 file · +4 −3Browse files

Unified · Split

libavfilter/af_adeclick.c+4−3
@@ -734,9 +734,10 @@ static av_cold void uninit(AVFilterContext *ctx) · 733 unmodified lines
734 AudioDeclickContext *s = ctx->priv;734 AudioDeclickContext *s = ctx->priv;
735 int i;735 int i;
736 736
737 av_log(ctx, AV_LOG_INFO, "Detected %s in %"PRId64" of %"PRId64" samples (%g%%).\n",737 if (s->nb_samples > 0)
738 s->is_declip ? "clips" : "clicks", s->detected_errors,738 av_log(ctx, AV_LOG_INFO, "Detected %s in %"PRId64" of %"PRId64" samples (%g%%).\n",
739 s->nb_samples, 100. * s->detected_errors / s->nb_samples);739 s->is_declip ? "clips" : "clicks", s->detected_errors,
740 s->nb_samples, 100. * s->detected_errors / s->nb_samples);
740 741
741 av_audio_fifo_free(s->fifo);742 av_audio_fifo_free(s->fifo);
742 av_audio_fifo_free(s->efifo);743 av_audio_fifo_free(s->efifo);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t