[vlc-commits] webvtt: code cleaning

Steve Lhomme git at videolan.org
Tue Sep 25 12:19:50 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Sep 25 10:00:35 2018 +0200| [33051d535010ab5d26d3fdf0c4b73167ae6135d6] | committer: Steve Lhomme

webvtt: code cleaning

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

 modules/codec/webvtt/webvtt.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/codec/webvtt/webvtt.c b/modules/codec/webvtt/webvtt.c
index 93da2179f1..31b562bdcd 100644
--- a/modules/codec/webvtt/webvtt.c
+++ b/modules/codec/webvtt/webvtt.c
@@ -89,9 +89,7 @@ struct webvtt_text_parser_t
 
 static vlc_tick_t MakeTime( unsigned t[4] )
 {
-    return vlc_tick_from_sec(t[0] * 3600)+
-           vlc_tick_from_sec(t[1] * 60)+
-           vlc_tick_from_sec(t[2]) +
+    return vlc_tick_from_sec( t[0] * 3600 + t[1] * 60 + t[2] ) +
            VLC_TICK_FROM_MS(t[3]);
 }
 



More information about the vlc-commits mailing list