summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--camlibs/ptp2/ptp-pack.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/camlibs/ptp2/ptp-pack.c b/camlibs/ptp2/ptp-pack.c
index f5ee4e592..39d3863b6 100644
--- a/camlibs/ptp2/ptp-pack.c
+++ b/camlibs/ptp2/ptp-pack.c
@@ -2537,7 +2537,10 @@ ptp_unpack_CANON_changes (PTPParams *params, unsigned char* data, int datasize,
curoff += 6; /* 7 , b (5ds) */
break;
default:
- curoff += 6;
+ if (olcver >= 0xf)
+ curoff += 7;
+ else
+ curoff += 6;
break;
}
i++;