Fix #29824: Error writing frame if 3D scene starts after first frame of animation...
[blender.git] / source / blender / editors / render / render_opengl.c
index a3783bdb342cac5155c7f34d02d3c83532f09593..90e988c030a1d8ed4def04c3985116e8ee45222b 100644 (file)
@@ -488,7 +488,8 @@ static int screen_opengl_render_anim_step(bContext *C, wmOperator *op)
                }
 
                if(BKE_imtype_is_movie(scene->r.im_format.imtype)) {
-                       ok= oglrender->mh->append_movie(&scene->r, CFRA, (int*)ibuf->rect, oglrender->sizex, oglrender->sizey, oglrender->reports);
+                       ok= oglrender->mh->append_movie(&scene->r, SFRA, CFRA, (int*)ibuf->rect,
+                                                       oglrender->sizex, oglrender->sizey, oglrender->reports);
                        if(ok) {
                                printf("Append frame %d", scene->r.cfra);
                                BKE_reportf(op->reports, RPT_INFO, "Appended frame: %d", scene->r.cfra);