Skip to content

Commit b2802f2

Browse files
author
Grok Compression
committed
compression: fixed bug in resolution box writing
1 parent cf12ca1 commit b2802f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/core/fileformat/compress/FileFormatJP2Compress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ uint8_t* FileFormatJP2Compress::write_res(uint32_t* p_nb_bytes_written)
435435
grk_write(&current_res_ptr, size);
436436

437437
/* Super-box ID */
438-
grk_write(current_res_ptr, (uint32_t)JP2_RES);
438+
grk_write(&current_res_ptr, (uint32_t)JP2_RES);
439439

440440
if(storeCapture)
441441
write_res_box(capture_resolution[0], capture_resolution[1], JP2_CAPTURE_RES, &current_res_ptr);

0 commit comments

Comments
 (0)