X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fjpeg.c;h=1c5e91c9da15fe671e74e9cbc020199b0c3b5d8f;hp=1f7491015a9a33617f7b38b4cdb1199dbdd61ec8;hb=a4be97bc967c8aceac1c893cbbe307b23b603683;hpb=02885fc850a390f4e7407140fdcb042a109c6582 diff --git a/lib/jpeg.c b/lib/jpeg.c index 1f74910..1c5e91c 100644 --- 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);