Browse Source

Do a little more checking.

Originally committed as revision 13502 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
591944cd0c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/tiertexseq.c

+ 1
- 1
libavformat/tiertexseq.c View File

@@ -110,7 +110,7 @@ static int seq_fill_buffer(SeqDemuxContext *seq, ByteIOContext *pb, int buffer_n
return AVERROR_INVALIDDATA;

seq_buffer = &seq->frame_buffers[buffer_num];
if (seq_buffer->fill_size + data_size > seq_buffer->data_size)
if (seq_buffer->fill_size + data_size > seq_buffer->data_size || data_size <= 0)
return AVERROR_INVALIDDATA;

url_fseek(pb, seq->current_frame_offs + data_offs, SEEK_SET);


Loading…
Cancel
Save