mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
indeo3: Fix a fencepost error.
Found with asan and the venerable 1-dog.avi sample.
This commit is contained in:
parent
735e601be1
commit
1149fbc763
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user