From 0d65a7d033040e641336230fb97d573d522076e6 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 25 Feb 2016 00:00:25 +0100 Subject: [PATCH] avfilter/af_astats: clear all stats Signed-off-by: Paul B Mahol --- libavfilter/af_astats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_astats.c b/libavfilter/af_astats.c index 70ec28a50f..c8b034a65a 100644 --- a/libavfilter/af_astats.c +++ b/libavfilter/af_astats.c @@ -98,7 +98,7 @@ static void reset_stats(AudioStatsContext *s) { int c; - memset(s->chstats, 0, sizeof(*s->chstats)); + memset(s->chstats, 0, sizeof(*s->chstats) * s->nb_channels); for (c = 0; c < s->nb_channels; c++) { ChannelStats *p = &s->chstats[c];