avfilter/af_astats: do not overwrite already set values when doing reset
authorPaul B Mahol <onemda@gmail.com>
Wed, 19 Jul 2017 18:11:43 +0000 (20:11 +0200)
committerPaul B Mahol <onemda@gmail.com>
Wed, 19 Jul 2017 18:11:43 +0000 (20:11 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_astats.c

index 182532f..41fec15 100644 (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;