Browse Source

avfilter/af_astats: clear all stats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.1
Paul B Mahol 9 years ago
parent
commit
0d65a7d033
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_astats.c

+ 1
- 1
libavfilter/af_astats.c View File

@@ -98,7 +98,7 @@ static void reset_stats(AudioStatsContext *s)
{ {
int c; 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++) { for (c = 0; c < s->nb_channels; c++) {
ChannelStats *p = &s->chstats[c]; ChannelStats *p = &s->chstats[c];


Loading…
Cancel
Save