summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2019-12-30 09:04:51 +0100
committerMarcus Meissner <marcus@jet.franken.de>2019-12-30 09:04:51 +0100
commit1997601036b562fe4d10f4a623f151ddd034bf6d (patch)
tree2a16e8a7e7f0d30172e9d02073205d2ea7bdcf7a
parent7ea83d5dc8d6d58aff008e62e240727c70c67e19 (diff)
downloadlibgphoto2-1997601036b562fe4d10f4a623f151ddd034bf6d.tar.gz
fix the comptype check to be same as above to avoid crashes (AFL)
-rw-r--r--camlibs/polaroid/pdc640.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/polaroid/pdc640.c b/camlibs/polaroid/pdc640.c
index 543889b15..146f4779a 100644
--- a/camlibs/polaroid/pdc640.c
+++ b/camlibs/polaroid/pdc640.c
@@ -698,7 +698,7 @@ pdc640_getpic (Camera *camera, int n, int thumbnail, int justraw,
CHECK_RESULT (pdc640_transmit_pic (camera->port, cmd, width, thumbnail,
*data, *size));
- if (thumbnail || (compression_type == 0 )) {
+ if (thumbnail || ((compression_type & 3) == 0 )) {
/* Process uncompressed data */
CHECK_RESULT (pdc640_processtn (width, height,
data, *size));