X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fmotion_est%2Ffilter_crop_detect.c;h=af58f359b539117c23306abf0770d282e95e84c8;hb=6feb43a276bbc0dd161b1cd746300959324147a2;hp=b47e30710c865430c71a888a378d95ddb0c18167;hpb=944372119577c5de81153ca1b8d3e1da0240c4ab;p=melted diff --git a/src/modules/motion_est/filter_crop_detect.c b/src/modules/motion_est/filter_crop_detect.c index b47e307..af58f35 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 || (int)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 );