mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Do not read from after the table, fixes CID108 RUN2.
Originally committed as revision 13501 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
31e15894d5
commit
e1dd8ac744
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user