[trunk] add a sentinel in debug code

This commit is contained in:
Mathieu Malaterre 2014-02-27 09:56:06 +00:00
parent a7cc5b6a5d
commit 8a4095b405
1 changed files with 1 additions and 0 deletions

View File

@ -6314,6 +6314,7 @@ void opj_j2k_setup_encoder( opj_j2k_t *p_j2k,
if (parameters->csty & J2K_CCP_CSTY_PRT) { if (parameters->csty & J2K_CCP_CSTY_PRT) {
OPJ_INT32 p = 0, it_res; OPJ_INT32 p = 0, it_res;
assert( tccp->numresolutions > 0 );
for (it_res = tccp->numresolutions - 1; it_res >= 0; it_res--) { for (it_res = tccp->numresolutions - 1; it_res >= 0; it_res--) {
if (p < parameters->res_spec) { if (p < parameters->res_spec) {