diff options
Diffstat (limited to 'media-libs/mlt/files/mlt-6.12.0-seconds-digits.patch')
-rw-r--r-- | media-libs/mlt/files/mlt-6.12.0-seconds-digits.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/media-libs/mlt/files/mlt-6.12.0-seconds-digits.patch b/media-libs/mlt/files/mlt-6.12.0-seconds-digits.patch new file mode 100644 index 00000000..c00accef --- /dev/null +++ b/media-libs/mlt/files/mlt-6.12.0-seconds-digits.patch @@ -0,0 +1,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" ) ) + {
\ No newline at end of file |