]> git.sesse.net Git - ffmpeg/commitdiff
exr: fix mixed declaration and statements.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Apr 2012 09:17:23 +0000 (11:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Apr 2012 19:07:53 +0000 (21:07 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/exr.c

index 3473280a3ca811e615ba3f4b959d5ae414442c28..a37bebf27aa6ebfa019e82e22ec70490bdd6ebff 100644 (file)
@@ -158,7 +158,7 @@ static int decode_frame(AVCodecContext *avctx,
     AVFrame *const p = &s->picture;
     uint8_t *ptr;
 
-    int x, y, stride, magic_number, version_flag;
+    int i, x, y, stride, magic_number, version_flag;
     int w = 0;
     int h = 0;
     unsigned int xmin   = ~0;
@@ -329,7 +329,7 @@ static int decode_frame(AVCodecContext *avctx,
         }
 
         // Process unknown variables
-        for (int i = 0; i < 2; i++) {
+        for (i = 0; i < 2; i++) {
             // Skip variable name/type
             while (++buf < buf_end)
                 if (buf[0] == 0x0)