]> git.sesse.net Git - mlt/commitdiff
Correct bug introduced by revision 1.3
authordezeroex <dezeroex@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 28 Oct 2005 07:14:23 +0000 (07:14 +0000)
committerdezeroex <dezeroex@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 28 Oct 2005 07:14:23 +0000 (07:14 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@860 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/motion_est/filter_crop_detect.c

index b47e30710c865430c71a888a378d95ddb0c18167..af58f359b539117c23306abf0770d282e95e84c8 100644 (file)
@@ -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 );