mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
patterns/jpeg: added support for extra data in APP0 section (#417)
Apple Multi-Picture Format JPEGs often have 4 extra bytes in the APP0 section. The pattern now skips any extra bytes beyond the fixed APP0 data. Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
@@ -145,6 +145,7 @@ struct Segment {
|
|||||||
u16 length;
|
u16 length;
|
||||||
if (marker == Marker::APP0) {
|
if (marker == Marker::APP0) {
|
||||||
APP0 data;
|
APP0 data;
|
||||||
|
u8 xtra_data[length - sizeof(length) - sizeof(data)];
|
||||||
} else if (marker == Marker::APP14) {
|
} else if (marker == Marker::APP14) {
|
||||||
APP14 data;
|
APP14 data;
|
||||||
} else if (marker == Marker::COM) {
|
} else if (marker == Marker::COM) {
|
||||||
|
|||||||
Reference in New Issue
Block a user