From bcae5e2e62038914433cd450f3871dc5326137e2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 10 Feb 2010 17:28:46 +0000 Subject: fix for crash in sequencer when sequebce data cant be read. --- source/blender/blenkernel/intern/sequencer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index c5865db5e26..282b8914aee 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -2498,8 +2498,13 @@ static TStripElem* do_build_seq_array_recursively(Scene *scene, TStripElem* se2 = give_tstripelem(seq_arr[i], cfra); float facf = seq->blend_opacity / 100.0; - + int early_out = sh.early_out(seq, facf, facf); + + /* if any of these are the case blender would crash */ + if(se1->ibuf==NULL || se1->ibuf_comp==NULL || se2->ibuf==NULL || se2->ibuf_comp==NULL) + continue; + switch (early_out) { case 0: { int x= se2->ibuf->x; -- cgit v1.2.3