Fix #29824: Error writing frame if 3D scene starts after first frame of animation...
[blender.git] / source / blender / editors / screen / screendump.c
index 043def31a23ac21a1e9fa93501c2a4e667572d14..e32277e3789b9101c0d57773b045df0d5259a315 100644 (file)
@@ -302,7 +302,9 @@ static void screenshot_startjob(void *sjv, short *stop, short *do_update, float
                if(sj->dumprect) {
                        
                        if(mh) {
-                               if(mh->append_movie(&rd, rd.cfra, (int *)sj->dumprect, sj->dumpsx, sj->dumpsy, &sj->reports)) {
+                               if(mh->append_movie(&rd, rd.sfra, rd.cfra, (int *)sj->dumprect,
+                                                   sj->dumpsx, sj->dumpsy, &sj->reports))
+                               {
                                        BKE_reportf(&sj->reports, RPT_INFO, "Appended frame: %d", rd.cfra);
                                        printf("Appended frame %d\n", rd.cfra);
                                } else