[vlc-commits] [Git][videolan/vlc][master] 2 commits: demux: avformat: fix non terminated string in lookup

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 6 12:56:21 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7eed79a4 by François Cartegnie at 2025-11-06T12:40:14+00:00
demux: avformat: fix non terminated string in lookup

- - - - -
0c55dd9d by François Cartegnie at 2025-11-06T12:40:14+00:00
demux: avformat: remove useless check

- - - - -


1 changed file:

- modules/demux/avformat/demux.c


Changes:

=====================================
modules/demux/avformat/demux.c
=====================================
@@ -1184,7 +1184,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 
         case DEMUX_GET_META:
         {
-            static const char names[][10] = {
+            static const char names[][11] = {
                 [vlc_meta_Title] = "title",
                 [vlc_meta_Artist] = "artist",
                 [vlc_meta_Genre] = "genre",
@@ -1209,9 +1209,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 
             for( unsigned i = 0; i < sizeof(names) / sizeof(*names); i++)
             {
-                if( !names[i][0] )
-                    continue;
-
                 AVDictionaryEntry *e = av_dict_get( dict, names[i], NULL, 0 );
                 if( e != NULL && e->value != NULL && IsUTF8(e->value) )
                     vlc_meta_Set( p_meta, i, e->value );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/1afc99f7ffb017f84b7d91d43aa61d93fc05384c...0c55dd9d017bfcb59eb4768506bee45d64a492d8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/1afc99f7ffb017f84b7d91d43aa61d93fc05384c...0c55dd9d017bfcb59eb4768506bee45d64a492d8
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