[trunk] add sentinel when tile_index is null

This commit is contained in:
Mathieu Malaterre 2012-05-21 08:38:13 +00:00
parent a4d1b1ba21
commit f0c732452f
1 changed files with 1 additions and 0 deletions

View File

@ -5520,6 +5520,7 @@ opj_bool j2k_read_sot_v2 (
/* Index */
if (p_j2k->cstr_index)
{
assert(p_j2k->cstr_index->tile_index != 00);
p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tileno = p_j2k->m_current_tile_number;
p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_tpsno = l_current_part;