[FFmpeg-cvslog] r13502 - trunk/libavformat/tiertexseq.c
michael
subversion
Wed May 28 22:30:42 CEST 2008
Author: michael
Date: Wed May 28 22:30:42 2008
New Revision: 13502
Log:
Do a little more checking.
Modified:
trunk/libavformat/tiertexseq.c
Modified: trunk/libavformat/tiertexseq.c
==============================================================================
--- trunk/libavformat/tiertexseq.c (original)
+++ trunk/libavformat/tiertexseq.c Wed May 28 22:30:42 2008
@@ -110,7 +110,7 @@ static int seq_fill_buffer(SeqDemuxConte
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);
More information about the ffmpeg-cvslog
mailing list