X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fmotion_est%2Ffilter_crop_detect.c;h=8165141a380ae20b2f29989096d06dbdb29936e9;hb=1305c947ce29e5b12e770ed562879a9648f62ffa;hp=ef9f48fc70109da553efb66a4cea25abd80651ac;hpb=3956dade4761301c97cc685253cb42f431f8ab18;p=melted diff --git a/src/modules/motion_est/filter_crop_detect.c b/src/modules/motion_est/filter_crop_detect.c index ef9f48f..8165141 100644 --- a/src/modules/motion_est/filter_crop_detect.c +++ b/src/modules/motion_est/filter_crop_detect.c @@ -75,9 +75,8 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * } // For periodic detection (with offset of 'skip') - if( frequency == 0 || (mlt_frame_get_position(this)+skip) % frequency != 0) + if( frequency == 0 || (int)(mlt_frame_get_position(this)+skip) % frequency != 0) { - // Inject in stream mlt_properties_set_data( MLT_FRAME_PROPERTIES(this), "bounds", bounds, sizeof( struct mlt_geometry_item_s ), NULL, NULL ); @@ -222,7 +221,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) /** Constructor for the filter. */ -mlt_filter filter_crop_detect_init( char *arg ) +mlt_filter filter_crop_detect_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { mlt_filter this = mlt_filter_new( ); if ( this != NULL )