avfilter/af_astats: do not overwrite already set values when doing reset

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-07-19 20:11:43 +02:00
parent 6e156075b0
commit a17fcd8e04

View File

@ -115,8 +115,6 @@ static void reset_stats(AudioStatsContext *s)
p->sigma_x = 0;
p->sigma_x2 = 0;
p->avg_sigma_x2 = 0;
p->min_sigma_x2 = 0;
p->max_sigma_x2 = 0;
p->min_run = 0;
p->max_run = 0;
p->min_runs = 0;