git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
omit drawing of objects outside the page.
[swftools.git]
/
lib
/
modules
/
swfbits.c
diff --git
a/lib/modules/swfbits.c
b/lib/modules/swfbits.c
index
b85eb58
..
f761ae0
100644
(file)
--- a/
lib/modules/swfbits.c
+++ b/
lib/modules/swfbits.c
@@
-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;
struct jpeg_error_mgr jerr;
struct jpeg_source_mgr mgr;
RGBA * dest;
+ int y;
*width = 0;
*height = 0;
*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);
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;
for (y=0;y<cinfo.output_height;y++) {
RGBA* line = &dest[y*cinfo.image_width];
U8* to = (U8*)line;