changeset 3388:cf43e053629a libavformat

Do a little more checking.
author michael
date Wed, 28 May 2008 20:30:42 +0000
parents 12b7fc079e64
children 788591625459
files tiertexseq.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tiertexseq.c	Wed May 28 20:28:48 2008 +0000
+++ b/tiertexseq.c	Wed May 28 20:30:42 2008 +0000
@@ -110,7 +110,7 @@
         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);