Fix #34186: VSE: Incorrect movie output when scene strip is muted by keyframe
[blender.git] / source / blender / render / intern / source / render_result.c
index 35b0638..c779b01 100644 (file)
@@ -1094,6 +1094,10 @@ ImBuf *render_result_rect_to_ibuf(RenderResult *rr, RenderData *rd)
                if (BKE_imtype_valid_depths(rd->im_format.imtype) & (R_IMF_CHAN_DEPTH_12 | R_IMF_CHAN_DEPTH_16 | R_IMF_CHAN_DEPTH_24 | R_IMF_CHAN_DEPTH_32)) {
                        IMB_float_from_rect(ibuf);
                }
+               else  {
+                       /* ensure no float buffer remained from previous frame */
+                       ibuf->rect_float = NULL;
+               }
        }
 
        /* color -> grayscale */