OSDN Git Service

Initialize pred in lms_predict()
authorMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Mon, 21 Nov 2011 18:54:01 +0000 (00:54 +0600)
committerMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Mon, 21 Nov 2011 18:54:01 +0000 (00:54 +0600)
libavcodec/wmalosslessdec.c

index 3ae6985..5b11d7d 100644 (file)
@@ -789,7 +789,7 @@ static void reset_codec(WmallDecodeCtx *s)
 
 static int lms_predict(WmallDecodeCtx *s, int ich, int ilms)
 {
-    int32_t pred, icoef;
+    int32_t pred = 0, icoef;
     int recent = s->cdlms[ich][ilms].recent;
 
     for (icoef = 0; icoef < s->cdlms[ich][ilms].order; icoef++)