fix mask vframe setup, add unshared vframe constructor
[goodguy/history.git] / cinelerra-5.1 / plugins / decimate / decimate.C
index e7d0d6d3c5f4395e26f4a5b53d29665c99e7884c..f2d4d6bb35d6a74ad73cc1c2a9143b56aa709254 100644 (file)
@@ -708,14 +708,9 @@ int Decimate::process_buffer(VFrame *frame,
 
        if(!frames[0])
        {
-               for(int i = 0; i < TOTAL_FRAMES; i++)
-               {
-                       frames[i] = new VFrame(0,
-                               -1,
-                               frame->get_w(),
-                               frame->get_h(),
-                               frame->get_color_model(),
-                               -1);
+               for(int i = 0; i < TOTAL_FRAMES; i++) {
+                       frames[i] = new VFrame(frame->get_w(), frame->get_h(),
+                                       frame->get_color_model(), 0);
                }
        }