summaryrefslogtreecommitdiff
path: root/source/fitz/load-jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/load-jpeg.c')
-rw-r--r--source/fitz/load-jpeg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/fitz/load-jpeg.c b/source/fitz/load-jpeg.c
index d3701a1e..f3bffd63 100644
--- a/source/fitz/load-jpeg.c
+++ b/source/fitz/load-jpeg.c
@@ -111,6 +111,11 @@ static int extract_exif_resolution(jpeg_saved_marker_ptr marker, int *xres, int
*xres = (int)(x_res * 254 / 100);
*yres = (int)(y_res * 254 / 100);
}
+ else
+ {
+ *xres = 0;
+ *yres = 0;
+ }
return 1;
}