diff options
Diffstat (limited to 'libavformat/tiertexseq.c')
-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 bcce6749ea..60ac5ecd7e 100644 --- a/libavformat/tiertexseq.c +++ b/libavformat/tiertexseq.c @@ -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); |