[trunk] correct a wrong assert in j2k.c
This commit is contained in:
parent
ef044d9f17
commit
7f3f4cfdd0
|
@ -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 */
|
/* Check if the positions provided by the user are correct */
|
||||||
|
|
||||||
/* Left */
|
/* Left */
|
||||||
assert(p_start_x > 0 );
|
assert(p_start_x >= 0 );
|
||||||
assert(p_start_y > 0 );
|
assert(p_start_y >= 0 );
|
||||||
|
|
||||||
if ((OPJ_UINT32)p_start_x > l_image->x1 ) {
|
if ((OPJ_UINT32)p_start_x > l_image->x1 ) {
|
||||||
opj_event_msg_v2(p_manager, EVT_ERROR,
|
opj_event_msg_v2(p_manager, EVT_ERROR,
|
||||||
|
|
Loading…
Reference in New Issue