X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fframework%2Fmlt_transition.c;h=dc4bc0fb2bdec3dc21256d3f188b616401355ce4;hb=ed2b3e0c6b5ab6ba6767e9d41fecb85431808401;hp=9be9e765934296e03ee973ec56fc8d1211d9ad09;hpb=08209a6284926b14c740bee1e7d0767e40639e83;p=mlt diff --git a/src/framework/mlt_transition.c b/src/framework/mlt_transition.c index 9be9e765..dc4bc0fb 100644 --- a/src/framework/mlt_transition.c +++ b/src/framework/mlt_transition.c @@ -285,7 +285,7 @@ double mlt_transition_get_progress_delta( mlt_transition self, mlt_frame frame ) double length = out - in + 1; double x = ( double ) ( position - in ) / length; double y = ( double ) ( position + 1 - in ) / length; - progress = length * ( y - x ) / 2.0; + progress = ( y - x ) / 2.0; } return progress; }