diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-04-13 14:36:30 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-04-13 14:36:30 +0000 |
| commit | 7f3f4cfdd0ff610a5eb0d6948968fca139ad7b08 (patch) | |
| tree | fd5c0e8e03dd8d64c677eea3ec18388e69679e0c | |
| parent | ef044d9f17024e38dde53e0af48c0e17d6f610cd (diff) | |
[trunk] correct a wrong assert in j2k.c
| -rw-r--r-- | libopenjpeg/j2k.c | 4 |
1 files 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, |
