]> git.sesse.net Git - mlt/blobdiff - src/modules/kdenlive/producer_framebuffer.c
make mlt_position type double
[mlt] / src / modules / kdenlive / producer_framebuffer.c
index bad5005a0612c55086e298944454bb4cb1963eca..e4780721ec99688275c9d3e972e2a0bb01d039a3 100644 (file)
@@ -74,7 +74,7 @@ static int framebuffer_get_image( mlt_frame frame, uint8_t **image, mlt_image_fo
                {
                        // Strobe effect wanted, calculate frame position
                        need_first = floor( actual_position );
-                       need_first -= need_first % strobe;
+                       need_first -= MLT_POSITION_MOD(need_first, strobe);
                }
                if ( freeze )
                {