diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-28 20:28:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-28 20:28:48 +0000 |
commit | e1dd8ac744eb5c998e3274b7bf438d24f5f982d2 (patch) | |
tree | cdd30b825a082f82a16902769b74275ff0472182 | |
parent | 31e15894d577e6cb46ecdf737ebc722aaaf14900 (diff) | |
download | ffmpeg-e1dd8ac744eb5c998e3274b7bf438d24f5f982d2.tar.gz |
Do not read from after the table, fixes CID108 RUN2.
Originally committed as revision 13501 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/tiertexseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c index 457185b63d..bcce6749ea 100644 --- a/libavformat/tiertexseq.c +++ b/libavformat/tiertexseq.c @@ -155,7 +155,7 @@ static int seq_parse_frame_data(SeqDemuxContext *seq, ByteIOContext *pb) 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]); |