You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/af_astats: Avoid Zero division in print part.
This commit is contained in:
committed by
Paul B Mahol
parent
9d7e42e65c
commit
65ba90eac6
@@ -222,6 +222,9 @@ static void print_stats(AVFilterContext *ctx)
|
||||
av_log(ctx, AV_LOG_INFO, "Peak count: %"PRId64"\n", p->min_count + p->max_count);
|
||||
}
|
||||
|
||||
if (!nb_samples || !s->nb_channels)
|
||||
return;
|
||||
|
||||
av_log(ctx, AV_LOG_INFO, "Overall\n");
|
||||
av_log(ctx, AV_LOG_INFO, "DC offset: %f\n", max_sigma_x / (nb_samples / s->nb_channels));
|
||||
av_log(ctx, AV_LOG_INFO, "Min level: %f\n", min);
|
||||
|
Reference in New Issue
Block a user