Fix T47900: VSE adjustment crashes on blank frame

Regression, should have been included in previous fix.
This commit is contained in:
Campbell Barton 2016-03-24 17:09:10 +11:00
parent d2244b59d8
commit 0a3792a65b
Notes: blender-bot 2023-02-14 08:04:15 +01:00
Referenced by issue #48172, Adjustment Layer on empty track crashes Blender
Referenced by issue #47900, VSE Adjustment crashes on blank frame
1 changed files with 3 additions and 1 deletions

View File

@ -2363,7 +2363,9 @@ static ImBuf *do_adjustment(const SeqRenderData *context, Sequence *seq, float c
if (BKE_sequencer_input_have_to_preprocess(context, seq, cfra)) {
out = IMB_dupImBuf(i);
IMB_metadata_copy(out, i);
if (out) {
IMB_metadata_copy(out, i);
}
IMB_freeImBuf(i);
}
else {