Skip to content

Commit

Permalink
opj_j2k_is_imf_compliant: Fix argument formatting for warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebras committed Jul 12, 2021
1 parent cc1919b commit c8ab3e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib/openjp2/j2k.c
Original file line number Diff line number Diff line change
Expand Up @@ -7234,7 +7234,7 @@ static OPJ_BOOL opj_j2k_is_imf_compliant(opj_cparameters_t *parameters,
if (image->comps[i].dy != 1) {
opj_event_msg(p_manager, EVT_WARNING,
"IMF profiles require YRsiz == 1. "
"Here it is set to %d for component i.\n"
"Here it is set to %d for component %d.\n"
"-> Non-IMF codestream will be generated\n",
image->comps[i].dy, i);
ret = OPJ_FALSE;
Expand Down Expand Up @@ -7498,8 +7498,7 @@ static OPJ_BOOL opj_j2k_is_imf_compliant(opj_cparameters_t *parameters,
opj_event_msg(p_manager, EVT_WARNING,
"IMF profiles require PPx = PPy = 7 for NLLL band, else 8.\n"
"-> Supplied values are different from that.\n"
"-> Non-IMF codestream will be generated\n",
NL);
"-> Non-IMF codestream will be generated\n");
ret = OPJ_FALSE;
}
} else {
Expand All @@ -7510,8 +7509,7 @@ static OPJ_BOOL opj_j2k_is_imf_compliant(opj_cparameters_t *parameters,
opj_event_msg(p_manager, EVT_WARNING,
"IMF profiles require PPx = PPy = 7 for NLLL band, else 8.\n"
"-> Supplied values are different from that.\n"
"-> Non-IMF codestream will be generated\n",
NL);
"-> Non-IMF codestream will be generated\n");
ret = OPJ_FALSE;
}
}
Expand Down

0 comments on commit c8ab3e5

Please sign in to comment.