From dbd3f9cca7b7c426d8a30ac7465c2374c603f7cf Mon Sep 17 00:00:00 2001 From: ddennedy Date: Fri, 19 Oct 2007 06:03:24 +0000 Subject: [PATCH] filter_vismv.c: bugfix pointer to array of motion vectors git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1031 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/motion_est/filter_motion_est.c | 2 ++ src/modules/motion_est/filter_vismv.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/modules/motion_est/filter_motion_est.c b/src/modules/motion_est/filter_motion_est.c index 734f048..31254d6 100644 --- a/src/modules/motion_est/filter_motion_est.c +++ b/src/modules/motion_est/filter_motion_est.c @@ -290,6 +290,8 @@ static inline void diamond_search( // Keep track of best and former best candidates motion_vector best, former; + best.dx = 0; + best.dy = 0; former.dx = 0; former.dy = 0; diff --git a/src/modules/motion_est/filter_vismv.c b/src/modules/motion_est/filter_vismv.c index 4e95120..23d1ffe 100644 --- a/src/modules/motion_est/filter_vismv.c +++ b/src/modules/motion_est/filter_vismv.c @@ -86,7 +86,7 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format int macroblock_width = mlt_properties_get_int( properties, "motion_est.macroblock_width" ); // Get the motion vectors - struct motion_vectors_s *current_vectors = mlt_properties_get_data( properties, "motion_est.vectors", NULL ); + struct motion_vector_s *current_vectors = mlt_properties_get_data( properties, "motion_est.vectors", NULL ); init_arrows( format, *width, *height ); -- 1.7.4.4