Skip to content

Commit 35c080d

Browse files
authored
Merge pull request #86 from kaksmet/app14-length
Allow Adobe APP14 segments to be longer than 12 bytes
2 parents 755d386 + fc20d77 commit 35c080d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ pub fn parse_app<R: Read>(reader: &mut R, marker: Marker) -> Result<Option<AppDa
487487
}
488488
},
489489
APP(14) => {
490-
if length == 12 {
490+
if length >= 12 {
491491
let mut buffer = [0u8; 12];
492492
reader.read_exact(&mut buffer)?;
493493
bytes_read = buffer.len();

0 commit comments

Comments
 (0)