Setting i to 0 once should do.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 May 2008 17:26:13 +0000 (17:26 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 3 May 2008 17:26:13 +0000 (17:26 +0000)
Originally committed as revision 13048 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/nellymoserdec.c

index a1b5d32..3ef9cac 100644 (file)
@@ -131,7 +131,7 @@ static void overlap_and_window(NellyMoserDecodeContext *s, float *state, float *
 
 static int sum_bits(short *buf, short shift, short off)
 {
-    int b, i = 0, ret = 0;
+    int b, i, ret = 0;
 
     for (i = 0; i < NELLY_FILL_LEN; i++) {
         b = buf[i]-off;