[FFmpeg-cvslog] Reset acfilter_prevvalues buffer in clear_codec_buffers()

Mashiat Sarker Shakkhar git at videolan.org
Tue Jan 3 23:53:10 CET 2012


ffmpeg | branch: master | Mashiat Sarker Shakkhar <shahriman_ams at yahoo.com> | Sat Dec 31 23:49:49 2011 +0600| [8dc8dd9f6fc0ab556cb12cd4a8c09d72587f8399] | committer: Mashiat Sarker Shakkhar

Reset acfilter_prevvalues buffer in clear_codec_buffers()

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

 libavcodec/wmalosslessdec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 5ecb424..ae7373a 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -752,6 +752,7 @@ static void clear_codec_buffers(WmallDecodeCtx *s)
 
     memset(s->acfilter_coeffs, 0,     16 * sizeof(int));
     memset(s->lpc_coefs      , 0, 40 * 2 * sizeof(int));
+    memset(s->acfilter_prevvalues, 0, 16 * 2 * sizeof(int)); // may be wrong
 
     memset(s->mclms_coeffs    , 0, 128 * sizeof(int16_t));
     memset(s->mclms_coeffs_cur, 0,   4 * sizeof(int16_t));



More information about the ffmpeg-cvslog mailing list