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:
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--;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user