Fixed crash in cases sequencer returns NULL image buffer

Happens when there's no strip under current frame. Simply added NULL-check.
This commit is contained in:
Sergey Sharybin 2012-09-17 07:09:11 +00:00
parent d1cde59ed3
commit 0d33a1c090

@ -1677,9 +1677,14 @@ static void do_render_seq(Render *re)
out = BKE_sequencer_give_ibuf(context, cfra, 0);
ibuf = IMB_dupImBuf(out);
IMB_freeImBuf(out);
BKE_sequencer_imbuf_from_sequencer_space(re->scene, ibuf);
if (out) {
ibuf = IMB_dupImBuf(out);
IMB_freeImBuf(out);
BKE_sequencer_imbuf_from_sequencer_space(re->scene, ibuf);
}
else {
ibuf = NULL;
}
recurs_depth--;