[trunk] correct a wrong assert in j2k.c

This commit is contained in:
Mickael Savinaud 2012-04-13 14:36:30 +00:00
parent ef044d9f17
commit 7f3f4cfdd0
1 changed files with 2 additions and 2 deletions

View File

@ -10132,8 +10132,8 @@ opj_bool j2k_set_decode_area( opj_j2k_v2_t *p_j2k,
/* Check if the positions provided by the user are correct */
/* Left */
assert(p_start_x > 0 );
assert(p_start_y > 0 );
assert(p_start_x >= 0 );
assert(p_start_y >= 0 );
if ((OPJ_UINT32)p_start_x > l_image->x1 ) {
opj_event_msg_v2(p_manager, EVT_ERROR,