[vlc-commits] demux/ttml: Convert_time: fix indentation

Filip Roséen git at videolan.org
Wed Jul 27 11:35:18 CEST 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Wed Jul 27 07:42:02 2016 +0200| [21da9e6ece2e8dded802ca45b01feddf70eb006b] | committer: Hugo Beauzée-Luyssen

demux/ttml: Convert_time: fix indentation

 - tabs are frowned upon, usage of such has been replaced, and;
 - excessive line-breaks have been removed to ease readability.

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=21da9e6ece2e8dded802ca45b01feddf70eb006b
---

 modules/demux/ttml.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index 9c1937c..c6e0616 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -163,14 +163,11 @@ static int Convert_time( int64_t *timing_value, const char *s )
     int m1 = 0;
     int s1 = 0;
     int d1 = 0;
-    if ( sscanf( s, "%d.%ds",
-                 &s1, &d1) == 2 ||
-	 sscanf( s, "%d:%d:%d,%d",
-                 &h1, &m1, &s1, &d1 ) == 4 ||
-         sscanf( s, "%d:%d:%d.%d",
-                 &h1, &m1, &s1, &d1 ) == 4 ||
-         sscanf( s, "%d:%d:%d",
-                 &h1, &m1, &s1) == 3 )
+
+    if ( sscanf( s, "%d.%ds", &s1, &d1) == 2 ||
+         sscanf( s, "%d:%d:%d,%d", &h1, &m1, &s1, &d1 ) == 4 ||
+         sscanf( s, "%d:%d:%d.%d", &h1, &m1, &s1, &d1 ) == 4 ||
+         sscanf( s, "%d:%d:%d", &h1, &m1, &s1) == 3 )
     {
         (*timing_value) = ( (int64_t)h1 * 3600 * 1000 +
                             (int64_t)m1 * 60 * 1000 +



More information about the vlc-commits mailing list