Skip to content

Commit 1f2a0d2

Browse files
committed
Fix MPE write issue on sub-tag size
1 parent 762d7a6 commit 1f2a0d2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/cmstypes.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4756,8 +4756,7 @@ cmsBool ReadMPEElem(struct _cms_typehandler_struct* self,
47564756
}
47574757

47584758
return TRUE;
4759-
4760-
cmsUNUSED_PARAMETER(SizeOfTag);
4759+
47614760
cmsUNUSED_PARAMETER(n);
47624761
}
47634762

@@ -4865,9 +4864,11 @@ cmsBool Type_MPE_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, v
48654864
goto Error;
48664865
}
48674866

4867+
Before = io ->Tell(io);
4868+
48684869
if (!_cmsWriteUInt32Number(io, ElementSig)) goto Error;
48694870
if (!_cmsWriteUInt32Number(io, 0)) goto Error;
4870-
Before = io ->Tell(io);
4871+
48714872
if (!TypeHandler ->WritePtr(self, io, Elem, 1)) goto Error;
48724873
if (!_cmsWriteAlignment(io)) goto Error;
48734874

0 commit comments

Comments
 (0)