git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed shape display formatting.
[swftools.git]
/
lib
/
modules
/
swfbits.c
diff --git
a/lib/modules/swfbits.c
b/lib/modules/swfbits.c
index
a687ffb
..
11aac11
100644
(file)
--- a/
lib/modules/swfbits.c
+++ b/
lib/modules/swfbits.c
@@
-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) {
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) {
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 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 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;
line[x].r = r;
line[x].g = g;
line[x].b = b;