diff ffstools/tiffs-rd/inode.c @ 996:09b8b2327838

tiffs in vitro reader: implemented support for old 16-bit location field (-O)
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 03 Jan 2016 04:23:29 +0000
parents 024042383a26
children
line wrap: on
line diff
--- a/ffstools/tiffs-rd/inode.c	Sat Jan 02 04:05:51 2016 +0000
+++ b/ffstools/tiffs-rd/inode.c	Sun Jan 03 04:23:29 2016 +0000
@@ -106,6 +106,8 @@
 	}
 	if (inf->len) {
 		inf->rawloc = le32toh(fl->dataptr);
+		if (old_16bit_location)
+			inf->rawloc >>= 16;
 		if (inf->rawloc > 0x0FFFFFFF) {
 invdptr:		fprintf(stderr,
 			"warning: inode #%x: invalid data pointer, skipping\n",