[vlc-commits] [Git][videolan/vlc][master] codec: ttml: don't validate namespace if it's NULL

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Jan 7 12:30:54 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
ae394639 by Steve Lhomme at 2026-01-07T12:15:14+00:00
codec: ttml: don't validate namespace if it's NULL

Similar to d16c61873f45898151d2ee6b9def1123038f652e.

Fixes #29501

- - - - -


1 changed file:

- modules/codec/ttml/substtml.c


Changes:

=====================================
modules/codec/ttml/substtml.c
=====================================
@@ -742,7 +742,7 @@ static int ParseTTMLChunk( xml_reader_t *p_reader, tt_namespaces_t *p_nss,
                 break;
 
             case XML_READER_STARTELEM:
-                if( strcmp( psz_node_namespace, TT_NS ) ||
+                if( ( psz_node_namespace && strcmp( psz_node_namespace, TT_NS ) ) ||
                     strcmp( tt_LocalName( psz_node_name ), "tt" ) ||
                     *pp_rootnode != NULL )
                     return VLC_EGENERIC;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ae3946397c26ec5fbbb2ead01049c64a20be07b1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ae3946397c26ec5fbbb2ead01049c64a20be07b1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list