opj_j2k_is_imf_compliant: Fix argument formatting for warnings.

This commit is contained in:
Sebastian Rasmussen 2021-07-12 03:04:55 +02:00
parent cc1919b183
commit c8ab3e5849
1 changed files with 3 additions and 5 deletions

View File

@ -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;
@ -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 {
@ -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;
}
}