Revision 591944cd

View differences:

libavformat/tiertexseq.c
110 110
        return AVERROR_INVALIDDATA;
111 111

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

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

Also available in: Unified diff