X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fmotion-hv%2Fmotioncache-hv.C;h=e9c74573b026633e24215e3e6b52cd90dcb44bb5;hp=98722ded06ca58f072a0ec1966b736bf5793249b;hb=48c313de28fe6d39d9431dbe2dca6ffb176541ff;hpb=3f6a262cfe390b3f8b275297d64565a5b6272969 diff --git a/cinelerra-5.1/plugins/motion-hv/motioncache-hv.C b/cinelerra-5.1/plugins/motion-hv/motioncache-hv.C index 98722ded..e9c74573 100644 --- a/cinelerra-5.1/plugins/motion-hv/motioncache-hv.C +++ b/cinelerra-5.1/plugins/motion-hv/motioncache-hv.C @@ -186,21 +186,9 @@ VFrame* MotionHVCache::get_image(int ratio, //PRINT_TRACE - VFrame *result = new VFrame(); - result->set_use_shm(0); - result->reallocate(0, - -1, - 0, - 0, - 0, - downsampled_w + 1, - downsampled_h + 1, - src->get_color_model(), - -1); - downsample_frame(result, - src, - ratio); - + VFrame *result = + new VFrame(downsampled_w+1, downsampled_h+1, src->get_color_model(), 0); + downsample_frame(result, src, ratio); MotionHVCacheItem *item = new MotionHVCacheItem(); item->image = result;