Commit 0d65a7d0 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_astats: clear all stats

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent c09248ae
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment