aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_astats.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-02-25 00:00:25 +0100
committerPaul B Mahol <onemda@gmail.com>2016-02-25 00:00:25 +0100
commit0d65a7d033040e641336230fb97d573d522076e6 (patch)
treec10a39e347b16951b5560ec20e177bfb7be5581b /libavfilter/af_astats.c
parentc09248aecd0d3f03064387734094ec75a23e1078 (diff)
downloadffmpeg-0d65a7d033040e641336230fb97d573d522076e6.tar.gz
avfilter/af_astats: clear all stats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_astats.c')
-rw-r--r--libavfilter/af_astats.c2
1 files changed, 1 insertions, 1 deletions
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];