Skip to content

Commit

Permalink
Code style fix (as requested)
Browse files Browse the repository at this point in the history
  • Loading branch information
mircomir committed Jan 29, 2025
1 parent d1ea3c2 commit abd5533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/openjp2/jp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,8 @@ OPJ_BOOL opj_jp2_setup_encoder(opj_jp2_t *jp2,
jp2->color.icc_profile_buf = (OPJ_BYTE *)opj_malloc(image->icc_profile_len);
if (jp2->color.icc_profile_buf) {
jp2->color.icc_profile_len = image->icc_profile_len;
memcpy(jp2->color.icc_profile_buf, image->icc_profile_buf, image->icc_profile_len);
memcpy(jp2->color.icc_profile_buf, image->icc_profile_buf,
image->icc_profile_len);
}
} else {
jp2->meth = 1;
Expand Down

0 comments on commit abd5533

Please sign in to comment.