]> git.sesse.net Git - mlt/commitdiff
filter_vismv.c: bugfix pointer to array of motion vectors
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 19 Oct 2007 06:03:24 +0000 (06:03 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 19 Oct 2007 06:03:24 +0000 (06:03 +0000)
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
src/modules/motion_est/filter_vismv.c

index 734f048f33f268a0ce4910bc0152fc4539022f9f..31254d6155a72c8f704a1517ab35464e72624f69 100644 (file)
@@ -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;
 
index 4e95120bda22466d075cf3e89d4ac44e97f3f1d8..23d1ffe2a16f1d475742ec3721e48903dfe61253 100644 (file)
@@ -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 );