added swf_ShapeAddFillStyle2().
[swftools.git] / lib / modules / swfbits.c
index b85eb58..f761ae0 100644 (file)
@@ -293,6 +293,7 @@ RGBA* swf_JPEG2TagToImage(TAG*tag, int*width, int*height)
     struct jpeg_error_mgr jerr;
     struct jpeg_source_mgr mgr;
     RGBA * dest;
+    int y;
     *width = 0;
     *height = 0;
 
@@ -323,7 +324,6 @@ RGBA* swf_JPEG2TagToImage(TAG*tag, int*width, int*height)
     dest = rfx_alloc(sizeof(RGBA)*cinfo.image_width*cinfo.image_height);
     
     jpeg_start_decompress(&cinfo);
-    int y;
     for (y=0;y<cinfo.output_height;y++) {
         RGBA* line = &dest[y*cinfo.image_width];
         U8* to = (U8*)line;