We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 592ef72 commit 68a6c34Copy full SHA for 68a6c34
src/core/codestream/ojph_params.cpp
@@ -919,7 +919,8 @@ namespace ojph {
919
ui8 buf[4];
920
bool result = true;
921
922
- *(ui16*)buf = swap_byte(JP2K_MARKER::COC);
+ *(ui16*)buf = JP2K_MARKER::COC;
923
+ *(ui16*)buf = swap_byte(*(ui16*)buf);
924
result &= file->write(&buf, 2) == 2;
925
*(ui16*)buf = swap_byte(Lcod);
926
0 commit comments