[vlc-commits] ttml: an invalid mtime_t is VLC_TS_INVALID

Steve Lhomme git at videolan.org
Fri May 4 10:37:58 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu May  3 10:15:59 2018 +0200| [6e398385ef47d786e23479060a5322d2a180adbe] | committer: Rémi Denis-Courmont

ttml: an invalid mtime_t is VLC_TS_INVALID

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/codec/ttml/ttml.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/ttml/ttml.h b/modules/codec/ttml/ttml.h
index 1add96635f..8978ff660b 100644
--- a/modules/codec/ttml/ttml.h
+++ b/modules/codec/ttml/ttml.h
@@ -122,7 +122,7 @@ static inline bool tt_time_Valid( const tt_time_t *t )
 static inline mtime_t tt_time_Convert( const tt_time_t *t )
 {
     if( !tt_time_Valid( t ) )
-        return -1;
+        return VLC_TS_INVALID;
     else
         return t->base + CLOCK_FREQ * t->frames / TT_FRAME_RATE;
 }



More information about the vlc-commits mailing list