]> git.sesse.net Git - mlt/blobdiff - src/modules/plus/producer_count.c
Fix clock hand for down direction
[mlt] / 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