[b2.x.x] backport into 2.x.x the rev 2235

This commit is contained in:
Mickael Savinaud
2013-02-02 17:09:49 +00:00
parent 1ef1a4a213
commit 7920f9d54f
2 changed files with 10 additions and 3 deletions

View File

@@ -7883,8 +7883,8 @@ OPJ_BOOL opj_j2k_read_SPCod_SPCoc( opj_j2k_t *p_j2k,
++l_tccp->numresolutions; /* tccp->numresolutions = read() + 1 */
if (l_tccp->numresolutions > OPJ_J2K_MAXRLVLS) {
opj_event_msg(p_manager, EVT_ERROR,
"Invalid value for numresolutions : %d\n",
l_tccp->numresolutions);
"Invalid value for numresolutions : %d, max value is set in openjpeg.h at %d\n",
l_tccp->numresolutions, OPJ_J2K_MAXRLVLS);
return OPJ_FALSE;
}
++l_current_ptr;