git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dbfb25
)
fixed bug in ->rgba conversion
author
kramm
<kramm>
Wed, 9 Apr 2008 07:33:30 +0000
(07:33 +0000)
committer
kramm
<kramm>
Wed, 9 Apr 2008 07:33:30 +0000
(07:33 +0000)
lib/jpeg.c
patch
|
blob
|
history
diff --git
a/lib/jpeg.c
b/lib/jpeg.c
index
dee4dfa
..
b0059b8
100644
(file)
--- a/
lib/jpeg.c
+++ b/
lib/jpeg.c
@@
-319,7
+319,7
@@
int jpeg_load(const char*filename, unsigned char**dest, int*_width, int*_height)
for (y=0;y<height;y++) {
int x;
U8 *js = scanline;
- RGBA*line = (RGBA*)&(*dest)[y*width];
+ RGBA*line = &((RGBA*)(*dest))[y*width];
jpeg_read_scanlines(&cinfo, &js, 1);
if (cinfo.out_color_space == JCS_GRAYSCALE) {