X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fmotion51%2Fmotion51.C;h=9e4143f45cbe11510fd7077ff50e4deee02d1132;hb=723142d62d61cde588e961426440f839ca9dcda9;hp=402a5a00eecf22869a529a05e123f78e37f66760;hpb=f110e7626d433b4724befe0871a3a35f9f81f264;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/motion51/motion51.C b/cinelerra-5.1/plugins/motion51/motion51.C index 402a5a00..9e4143f4 100644 --- a/cinelerra-5.1/plugins/motion51/motion51.C +++ b/cinelerra-5.1/plugins/motion51/motion51.C @@ -120,7 +120,7 @@ Motion51Main::~Motion51Main() delete [] ypts; } -const char* Motion51Main::plugin_title() { return _("Motion51"); } +const char* Motion51Main::plugin_title() { return N_("Motion51"); } int Motion51Main::is_realtime() { return 1; } int Motion51Main::is_multichannel() { return 1; } @@ -502,7 +502,7 @@ VFrame* Motion51Main::new_temp(VFrame *&tmp, VFrame *ref) delete tmp; tmp = 0; } if( !tmp ) - tmp = new VFrame(0, -1, ref->get_w(), ref->get_h(), ref->get_color_model(), -1); + tmp = new VFrame(ref->get_w(), ref->get_h(), ref->get_color_model(), 0); return tmp; } @@ -686,7 +686,7 @@ int Motion51Main::put_cache_line(const char *line) if( key == active_key ) return 1; if( !active_fp ) { close_cache_file(); - sprintf(cache_file, "%s.bak", config.tracking_file); + snprintf(cache_file, sizeof(cache_file), "%s.bak", config.tracking_file); ::rename(config.tracking_file, cache_file); if( !(active_fp = fopen(config.tracking_file, "w")) ) { perror(config.tracking_file);