Changeset 15217 in josm for trunk/src/com/drew/metadata/iptc
- Timestamp:
- 2019-07-07T01:56:46+02:00 (7 years ago)
- Location:
- trunk/src/com/drew/metadata/iptc
- Files:
-
- 4 edited
-
IptcDescriptor.java (modified) (1 diff)
-
IptcDirectory.java (modified) (1 diff)
-
IptcReader.java (modified) (3 diffs)
-
Iso2022Converter.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/iptc/IptcDescriptor.java
r13061 r15217 1 1 /* 2 * Copyright 2002-201 7Drew Noakes2 * Copyright 2002-2019 Drew Noakes and contributors 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/metadata/iptc/IptcDirectory.java
r13061 r15217 1 1 /* 2 * Copyright 2002-201 7Drew Noakes2 * Copyright 2002-2019 Drew Noakes and contributors 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/metadata/iptc/IptcReader.java
r13061 r15217 1 1 /* 2 * Copyright 2002-201 7Drew Noakes2 * Copyright 2002-2019 Drew Noakes and contributors 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 118 118 } 119 119 120 // we need at least f ivebytes left to read a tag121 if (offset + 5> length) {120 // we need at least four bytes left to read a tag 121 if (offset + 4 > length) { 122 122 directory.addError("Too few bytes remain for a valid IPTC tag"); 123 123 return; … … 130 130 directoryType = reader.getUInt8(); 131 131 tagType = reader.getUInt8(); 132 // TODO support Extended DataSet Tag (see 1.5(c), p14, IPTC-IIMV4.2.pdf)133 132 tagByteCount = reader.getUInt16(); 133 if (tagByteCount > 32767) { 134 // Extended DataSet Tag (see 1.5(c), p14, IPTC-IIMV4.2.pdf) 135 tagByteCount = ((tagByteCount & 0x7FFF) << 16) | reader.getUInt16(); 136 offset += 2; 137 } 134 138 offset += 4; 135 139 } catch (IOException e) { -
trunk/src/com/drew/metadata/iptc/Iso2022Converter.java
r13061 r15217 1 1 /* 2 * Copyright 2002-201 7Drew Noakes2 * Copyright 2002-2019 Drew Noakes and contributors 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License");
Note:
See TracChangeset
for help on using the changeset viewer.
