diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-11-07 18:46:46 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-11-08 10:59:52 -0800 |
commit | 1149fbc7631a8c2258386f9aa247806715493b10 (patch) | |
tree | 26c03f26160553352487feefc0015d9fad8acba4 /libavcodec | |
parent | 735e601be1b7731d256a41e942b31a96255a6bec (diff) | |
download | ffmpeg-1149fbc7631a8c2258386f9aa247806715493b10.tar.gz |
indeo3: Fix a fencepost error.
Found with asan and the venerable 1-dog.avi sample.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/indeo3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 2a929a53c7..2c7e96b738 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -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 */ |