Fix #29824: Error writing frame if 3D scene starts after first frame of animation...
[blender.git] / source / blender / render / intern / source / pipeline.c
index 1d238015e2109478edd68b349bc61c1a06a13133..f585912c18c3e2f9316d620f01aecae9513074c2 100644 (file)
@@ -2047,7 +2047,8 @@ static int do_write_image_or_movie(Render *re, Main *bmain, Scene *scene, bMovie
                        dofree = 1;
                }
 
-               ok= mh->append_movie(&re->r, scene->r.cfra, (int *)rect32, rres.rectx, rres.recty, re->reports);
+               ok= mh->append_movie(&re->r, scene->r.sfra, scene->r.cfra, (int *)rect32,
+                                    rres.rectx, rres.recty, re->reports);
                if(dofree) {
                        MEM_freeN(rect32);
                }