X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fmotion_est%2Ffilter_motion_est.c;h=f81a2b8324ecb51c1c8fd02aa7bcc49cae8aef5e;hb=6c95a9df3eee556eb8375fdee25c1d5469642745;hp=734f048f33f268a0ce4910bc0152fc4539022f9f;hpb=3d366fcfb46c1ae8ae3e38e15012edb6affd9828;p=melted diff --git a/src/modules/motion_est/filter_motion_est.c b/src/modules/motion_est/filter_motion_est.c index 734f048..f81a2b8 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; @@ -1072,7 +1074,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) /** Constructor for the filter. */ -mlt_filter filter_motion_est_init( char *arg ) +mlt_filter filter_motion_est_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { mlt_filter this = mlt_filter_new( ); if ( this != NULL )