Skip to content

Commit 68a6c34

Browse files
committed
Fixes compilation issue.
1 parent 592ef72 commit 68a6c34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/codestream/ojph_params.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,8 @@ namespace ojph {
919919
ui8 buf[4];
920920
bool result = true;
921921

922-
*(ui16*)buf = swap_byte(JP2K_MARKER::COC);
922+
*(ui16*)buf = JP2K_MARKER::COC;
923+
*(ui16*)buf = swap_byte(*(ui16*)buf);
923924
result &= file->write(&buf, 2) == 2;
924925
*(ui16*)buf = swap_byte(Lcod);
925926
result &= file->write(&buf, 2) == 2;

0 commit comments

Comments
 (0)