diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-08-16 09:13:58 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-08-16 09:13:58 +0000 |
| commit | 28a002876243b012369a7408642d867c5c108d6e (patch) | |
| tree | 2cbd849e1a760d0396752c59287df9b5f975c3e1 /libopenjpeg/j2k.c | |
| parent | ec19c32b63875dd4ed1671323ce520d06c5ec6b4 (diff) | |
Correct the wrong output management of opj_stream_read_seek function (thanks to EvenR)
Diffstat (limited to 'libopenjpeg/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 96275325..043a4659 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -10571,13 +10571,13 @@ static opj_bool opj_j2k_decode_one_tile ( opj_j2k_v2_t *p_j2k, if ( ! p_j2k->cstr_index->tile_index[l_tile_no_to_dec].nb_tps) { /* the index for this tile has not been built, * so move to the last SOT read */ - if ( opj_stream_read_seek(p_stream, p_j2k->m_specific_param.m_decoder.m_last_sot_read_pos+2, p_manager) ){ + if ( !(opj_stream_read_seek(p_stream, p_j2k->m_specific_param.m_decoder.m_last_sot_read_pos+2, p_manager)) ){ opj_event_msg_v2(p_manager, EVT_ERROR, "Problem with seek function\n"); return OPJ_FALSE; } } else{ - if (opj_stream_read_seek(p_stream, p_j2k->cstr_index->tile_index[l_tile_no_to_dec].tp_index[0].start_pos+2, p_manager)) { + if ( !(opj_stream_read_seek(p_stream, p_j2k->cstr_index->tile_index[l_tile_no_to_dec].tp_index[0].start_pos+2, p_manager)) ) { opj_event_msg_v2(p_manager, EVT_ERROR, "Problem with seek function\n"); return OPJ_FALSE; } |
