ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Thu Feb 25 00:00:25 
2016 +0100| [0d65a7d033040e641336230fb97d573d522076e6] | committer: Paul B Mahol

avfilter/af_astats: clear all stats

Signed-off-by: Paul B Mahol <one...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d65a7d033040e641336230fb97d573d522076e6
---

 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 70ec28a..c8b034a 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];

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to