OSDN Git Service

Fix some int / int16_t / int32_t confusion
authorMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Thu, 1 Dec 2011 20:58:00 +0000 (02:58 +0600)
committerMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Thu, 1 Dec 2011 21:09:19 +0000 (03:09 +0600)
For now force everything to int16_t, except
for variables used as index

libavcodec/wmalosslessdec.c

index 795fcae..3b3ff0f 100644 (file)
@@ -875,7 +875,8 @@ static void revert_mclms(WmallDecodeCtx *s, int tile_size)
 
 static int lms_predict(WmallDecodeCtx *s, int ich, int ilms)
 {
-    int16_t pred = 0, icoef;
+    int16_t pred = 0;
+    int icoef;
     int recent = s->cdlms[ich][ilms].recent;
 
     for (icoef = 0; icoef < s->cdlms[ich][ilms].order; icoef++)
@@ -890,7 +891,7 @@ static int lms_predict(WmallDecodeCtx *s, int ich, int ilms)
     return pred;
 }
 
-static void lms_update(WmallDecodeCtx *s, int ich, int ilms, int32_t input, int32_t pred)
+static void lms_update(WmallDecodeCtx *s, int ich, int ilms, int16_t input, int16_t pred)
 {
     int16_t icoef;
     int recent = s->cdlms[ich][ilms].recent;