fixed non-(0,0) movie bbox bug.
[swftools.git] / lib / modules / swfbits.c
index a687ffb..11aac11 100644 (file)
@@ -262,7 +262,6 @@ static boolean tag_fill_input_buffer(struct jpeg_decompress_struct *cinfo)
        tag->data[tag->pos+1] == 0xd9 &&
        tag->data[tag->pos+2] == 0xff &&
        tag->data[tag->pos+3] == 0xd8) {
-        printf("Skip\n");
         tag->pos += 4;
     }
     if(tag->pos >= tag->len) {
@@ -333,9 +332,9 @@ RGBA* swf_JPEG2TagToImage(TAG*tag, int*width, int*height)
         int x;
         jpeg_read_scanlines(&cinfo,&to,1);
         for(x=cinfo.output_width-1;x>=0;--x) {
-            int b = to[x*3+0];
+            int r = to[x*3+0];
             int g = to[x*3+1];
-            int r = to[x*3+2];
+            int b = to[x*3+2];
             line[x].r = r;
             line[x].g = g;
             line[x].b = b;