mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-15 20:01:42 +00:00
avfilter/af_astats: do not give output for 0 samples
This commit is contained in:
parent
569b1a24cd
commit
14e6ca17e1
@ -668,6 +668,9 @@ static void print_stats(AVFilterContext *ctx)
|
||||
for (c = 0; c < s->nb_channels; c++) {
|
||||
ChannelStats *p = &s->chstats[c];
|
||||
|
||||
if (p->nb_samples == 0)
|
||||
continue;
|
||||
|
||||
if (p->nb_samples < s->tc_samples)
|
||||
p->min_sigma_x2 = p->max_sigma_x2 = p->sigma_x2 / p->nb_samples;
|
||||
|
||||
@ -754,6 +757,9 @@ static void print_stats(AVFilterContext *ctx)
|
||||
av_log(ctx, AV_LOG_INFO, "Number of denormals: %"PRId64"\n", p->nb_denormals);
|
||||
}
|
||||
|
||||
if (nb_samples == 0)
|
||||
return;
|
||||
|
||||
if (s->measure_overall != MEASURE_NONE)
|
||||
av_log(ctx, AV_LOG_INFO, "Overall\n");
|
||||
if (s->measure_overall & MEASURE_DC_OFFSET)
|
||||
|
Loading…
Reference in New Issue
Block a user