]> git.sesse.net Git - mlt/commitdiff
Fix clock hand for down direction
authorBrian Matherly <pez4brian@yahoo.com>
Sun, 8 Dec 2013 05:01:57 +0000 (23:01 -0600)
committerBrian Matherly <pez4brian@yahoo.com>
Sun, 8 Dec 2013 05:01:57 +0000 (23:01 -0600)
src/modules/plus/producer_count.c

index 4e89ab41e511f2326282994bfc15f130e39b1472..92f5fac0b6cb65de9481e38b81cfb7d44171c3ea 100644 (file)
@@ -464,7 +464,7 @@ static void add_clock_to_frame( mlt_producer producer, mlt_frame frame, mlt_posi
        if( !strcmp( direction, "down" ) )
        {
                int out = mlt_producer_get_out( producer );
-               int frames = fps - MLT_POSITION_MOD(out - position, fps);
+               int frames = fps - MLT_POSITION_MOD( (out - position), fps);
                clock_angle = lrint( (frames + 1) * 360 / fps );
        }
        else