Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -734,9 +734,10 @@ static av_cold void uninit(AVFilterContext *ctx) · 733 unmodified lines | ||
| 734 | 734 | AudioDeclickContext *s = ctx->priv; |
| 735 | 735 | int i; |
| 736 | 736 | |
| 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); | |
| 740 | 741 | |
| 741 | 742 | av_audio_fifo_free(s->fifo); |
| 742 | 743 | av_audio_fifo_free(s->efifo); |