]> git.sesse.net Git - vlc/blobdiff - modules/demux/subtitle.c
MP4: support for the \xa9too atom
[vlc] / modules / demux / subtitle.c
index c319946793613ac1e97ee3de2d3842cea7520d10..394a80bbf8c144e82dbd33612f9f084f5285f8c0 100644 (file)
@@ -1855,7 +1855,7 @@ static int ParsePSB( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
 
 static int64_t ParseRealTime( char *psz, int *h, int *m, int *s, int *f )
 {
-    if( strlen( psz ) == 0 ) return 0;
+    if( *psz == '\0' ) return 0;
     if( sscanf( psz, "%d:%d:%d.%d", h, m, s, f ) == 4 ||
             sscanf( psz, "%d:%d.%d", m, s, f ) == 3 ||
             sscanf( psz, "%d.%d", s, f ) == 2 ||