From 7f3f4cfdd0ff610a5eb0d6948968fca139ad7b08 Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Fri, 13 Apr 2012 14:36:30 +0000 Subject: [PATCH] [trunk] correct a wrong assert in j2k.c --- libopenjpeg/j2k.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c index 826381c4..c2ff7f13 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -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, -- 2.40.0