indeo3: Fix a fencepost error.

Found with asan and the venerable 1-dog.avi sample.
This commit is contained in:
Alex Converse 2011-11-07 18:46:46 -08:00
parent 735e601be1
commit 1149fbc763
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ static int decode_cell_data(Cell *cell, uint8_t *block, uint8_t *ref_block,
BUFFER_PRECHECK;
dyad1 = bytestream_get_byte(data_ptr);
dyad2 = code;
if (dyad1 > delta_tab->num_dyads || dyad1 >= 248)
if (dyad1 >= delta_tab->num_dyads || dyad1 >= 248)
return IV3_BAD_DATA;
} else {
/* process QUADS */