plugin fixes and upgrades
[goodguy/history.git] / cinelerra-5.0 / plugins / 1080to540 / 1080to540.C
index 109fc90bd5119fd9f086ff14bb2bcd923594c44a..3c6387bc8dee8db378c8e9670bdfd5142a6e125d 100644 (file)
@@ -176,7 +176,7 @@ void _1080to540Main::reduce_field(VFrame *output, VFrame *input, int src_field,
        int h = input->get_h();
 
        if(h > output->get_h()) h = output->get_h();
-       if(w > output->get_w()) h = output->get_w();
+       if(w > output->get_w()) w = output->get_w();
 
 #define REDUCE_MACRO(type, temp, components) \
 for(int i = 0; i < OUT_ROWS; i++) \
@@ -267,6 +267,9 @@ void _1080to540Main::save_data(KeyFrame *keyframe)
        output.tag.set_title("1080TO540");
        output.tag.set_property("FIRST_FIELD", config.first_field);
        output.append_tag();
+       output.tag.set_title("/1080TO540");
+       output.append_tag();
+       output.append_newline();
        output.terminate_string();
 }