summaryrefslogtreecommitdiff
path: root/media-libs/mlt/files/mlt-6.12.0-seconds-digits.patch
blob: c00accefd1e3c767e063ae84bf972a1042cecc8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 64a71150650616ab0309da1a76e37e762572f641 Mon Sep 17 00:00:00 2001
From: Brian Matherly <code@brianmatherly.com>
Date: Mon, 19 Nov 2018 22:44:07 -0600
Subject: [PATCH] Fix number of digits for seconds.

---
 src/modules/plus/filter_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/plus/filter_timer.c b/src/modules/plus/filter_timer.c
index 519f1f72a..32da3281d 100644
--- a/src/modules/plus/filter_timer.c
+++ b/src/modules/plus/filter_timer.c
@@ -90,7 +90,7 @@ static void get_timer_str( mlt_filter filter, mlt_frame frame, char* text )
 	}
 	else if ( !strcmp( format, "MM:SS.SS" ) )
 	{
-		snprintf( text, MAX_TEXT_LEN, "%02d:%02.2f", hours * 60 + mins, secs );
+		snprintf( text, MAX_TEXT_LEN, "%02d:%05.2f", hours * 60 + mins, secs );
 	}
 	else if ( !strcmp( format, "SS" ) )
 	{