Mercurial > libavformat.hg
changeset 3387:12b7fc079e64 libavformat
Do not read from after the table, fixes CID108 RUN2.
author | michael |
---|---|
date | Wed, 28 May 2008 20:28:48 +0000 |
parents | 9513f0d1ce0b |
children | cf43e053629a |
files | tiertexseq.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tiertexseq.c Wed May 28 01:57:19 2008 +0000 +++ b/tiertexseq.c Wed May 28 20:28:48 2008 +0000 @@ -155,7 +155,7 @@ for (i = 0; i < 3; i++) { if (offset_table[i] != 0) { - for (e = i + 1; e < 4 && offset_table[e] == 0; e++); + for (e = i + 1; e < 3 && offset_table[e] == 0; e++); err = seq_fill_buffer(seq, pb, buffer_num[1 + i], offset_table[i], offset_table[e] - offset_table[i]);