git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bugfixes in jpeg.c
[swftools.git]
/
lib
/
jpeg.c
diff --git
a/lib/jpeg.c
b/lib/jpeg.c
index
1f74910
..
1c5e91c
100644
(file)
--- a/
lib/jpeg.c
+++ b/
lib/jpeg.c
@@
-413,6
+413,8
@@
void jpeg_get_size(const char *filename, int *width, int *height)
*width = 0;
*height = 0;
cinfo.err = jpeg_std_error(&jerr);
+ cinfo.image_width = 0;
+ cinfo.image_height = 0;
jpeg_create_decompress(&cinfo);
if ((fi = fopen(filename, "rb")) == NULL) {
fprintf(stderr, "couldn't open %s\n", filename);