From: Brian Matherly Date: Sun, 8 Dec 2013 05:01:57 +0000 (-0600) Subject: Fix clock hand for down direction X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6134e62966cb138af862d45b0c6ca4f9f1fa2850;p=mlt Fix clock hand for down direction --- diff --git a/src/modules/plus/producer_count.c b/src/modules/plus/producer_count.c index 4e89ab41..92f5fac0 100644 --- a/src/modules/plus/producer_count.c +++ b/src/modules/plus/producer_count.c @@ -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