summaryrefslogtreecommitdiff
path: root/libavformat/tiertexseq.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-28 20:30:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-28 20:30:42 +0000
commit591944cd0c4f10ddf0eaee9298553633e12a26d0 (patch)
tree92d0410dca160f72907c07e2db718f32b246c118 /libavformat/tiertexseq.c
parente1dd8ac744eb5c998e3274b7bf438d24f5f982d2 (diff)
Do a little more checking.
Originally committed as revision 13502 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/tiertexseq.c')
-rw-r--r--libavformat/tiertexseq.c2
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);