Credit Andrew with minor configuration updates
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / motion51 / motion51.C
index b61e22442b91109f35c2fa69255a888a2b175374..702d43e7d638f604d4bf92eb1ffe3a8b1d22b417 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * CINELERRA
+ * Copyright (C) 2020 William Morrow
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
+
 #include "affine.h"
 #include "bchash.h"
 #include "clip.h"
@@ -434,7 +455,9 @@ int Motion51Main::process_buffer(VFrame **frame, int64_t position, double frame_
                &corner_float : &corner_uint8;
 
        int use_opengl = get_use_opengl();
-       read_frame(out, target_layer, out_position, frame_rate, use_opengl);
+//     Do NOT use opengl here because if you so than dissolve, flash, and zoome can cause problems.
+//     read_frame(out, target_layer, out_position, frame_rate, use_opengl);
+       read_frame(out, target_layer, out_position, frame_rate, 0);
        out_w = out->get_w();
        out_h = out->get_h();
        out_r = 0.5 * (out_w < out_h ? out_w : out_h);