fix for missing NULL check in BKE_sequence_init_colorspace().

This commit is contained in:
Campbell Barton
2013-01-04 11:02:35 +00:00
parent 03044290ce
commit 1022151d6e

View File

@@ -3967,13 +3967,13 @@ void BKE_sequence_init_colorspace(Sequence *seq)
/* byte images are default to straight alpha, however sequencer /* byte images are default to straight alpha, however sequencer
* works in premul space, so mark strip to be premultiplied first * works in premul space, so mark strip to be premultiplied first
*/ */
if (!ibuf->rect_float) seq->alpha_mode = SEQ_ALPHA_PREMUL;
seq->alpha_mode = SEQ_ALPHA_STRAIGHT; if (ibuf) {
else if (ibuf->rect_float) {
seq->alpha_mode = SEQ_ALPHA_PREMUL; seq->alpha_mode = SEQ_ALPHA_PREMUL;
}
if (ibuf)
IMB_freeImBuf(ibuf); IMB_freeImBuf(ibuf);
}
} }
} }
} }