From 249d42affbc498490e73fa9e646483cb288b55ea Mon Sep 17 00:00:00 2001 From: YourMJK Date: Mon, 26 Feb 2024 00:33:22 +0100 Subject: [PATCH] Fix condition for `object_cropped_flag` in kaitai structure file --- sup-parser.ksy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sup-parser.ksy b/sup-parser.ksy index d062f5e..5f25ac9 100644 --- a/sup-parser.ksy +++ b/sup-parser.ksy @@ -109,16 +109,16 @@ types: type: u2 - id: obj_crop_hor_pos type: u2 - if: object_cropped_flag == 0x40 + if: object_cropped_flag & 0x80 != 0 - id: obj_crop_ver_pos type: u2 - if: object_cropped_flag == 0x40 + if: object_cropped_flag & 0x80 != 0 - id: obj_crop_width type: u2 - if: object_cropped_flag == 0x40 + if: object_cropped_flag & 0x80 != 0 - id: obj_crop_height type: u2 - if: object_cropped_flag == 0x40 + if: object_cropped_flag & 0x80 != 0 windows_object_type: seq: