fix mask vframe setup, add unshared vframe constructor
[goodguy/history.git] / cinelerra-5.1 / plugins / motion-hv / motionscan-hv.C
index 6c4d6e07145176648560cfb5bb1112a92dd9b32f..0bded66c391bf53bfb3b5109862b855894006743 100644 (file)
@@ -602,17 +602,9 @@ printf("MotionHVScan::pixel_search %d range fail range2=%f\n", __LINE__, range2)
 // rotated_current[i]);
                        if(!rotated_current[i])
                        {
-                               rotated_current[i] = new VFrame();
-                               rotated_current[i]->set_use_shm(0);
-                               rotated_current[i]->reallocate(0,
-                                       -1,
-                                       0,
-                                       0,
-                                       0,
-                                       downsampled_current_w + 1,
-                                       downsampled_current_h + 1,
-                                       current_frame_arg->get_color_model(),
-                                       -1);
+                               rotated_current[i] =
+                                       new VFrame(downsampled_current_w+1, downsampled_current_h+1,
+                                               current_frame_arg->get_color_model(), 0);
 //printf("MotionHVScan::pixel_search %d\n", __LINE__);
                        }