filter_vismv.c: bugfix pointer to array of motion vectors
[melted] / src / modules / motion_est / filter_motion_est.c
index 734f048..31254d6 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;