Przeglądaj źródła

Fix parsing byte TIFF tags

DarthSim 1 rok temu
rodzic
commit
ef77940062
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      imagemeta/tiff.go

+ 1 - 1
imagemeta/tiff.go

@@ -90,7 +90,7 @@ func DecodeTiffMeta(rr io.Reader) (Meta, error) {
 
 		switch datatype {
 		case tiffDtByte:
-			value = int(tmp[9])
+			value = int(tmp[8])
 		case tiffDtShort:
 			value = int(byteOrder.Uint16(tmp[8:10]))
 		case tiffDtLong: