mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/af_astats: print stats in case nb_samples is 0
Happens with special function only.
This commit is contained in:
parent
f56454544f
commit
4d38d4607c
|
@ -668,7 +668,7 @@ static void print_stats(AVFilterContext *ctx)
|
|||
for (c = 0; c < s->nb_channels; c++) {
|
||||
ChannelStats *p = &s->chstats[c];
|
||||
|
||||
if (p->nb_samples == 0)
|
||||
if (p->nb_samples == 0 && ctx->outputs[0]->sample_count_in == 0)
|
||||
continue;
|
||||
|
||||
if (p->nb_samples < s->tc_samples)
|
||||
|
@ -757,7 +757,7 @@ static void print_stats(AVFilterContext *ctx)
|
|||
av_log(ctx, AV_LOG_INFO, "Number of denormals: %"PRId64"\n", p->nb_denormals);
|
||||
}
|
||||
|
||||
if (nb_samples == 0)
|
||||
if (nb_samples == 0 && ctx->outputs[0]->sample_count_in == 0)
|
||||
return;
|
||||
|
||||
if (s->measure_overall != MEASURE_NONE)
|
||||
|
|
Loading…
Reference in New Issue