Commit 17c48817 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avformat: validate encoding of meta informations (fixes #8390)

parent f77e83ab
...@@ -897,7 +897,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -897,7 +897,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
continue; continue;
AVDictionaryEntry *e = av_dict_get( dict, names[i], NULL, 0 ); AVDictionaryEntry *e = av_dict_get( dict, names[i], NULL, 0 );
if( e != NULL && e->value != NULL ) if( e != NULL && e->value != NULL && IsUTF8(e->value) )
vlc_meta_Set( p_meta, i, e->value ); vlc_meta_Set( p_meta, i, e->value );
} }
return VLC_SUCCESS; return VLC_SUCCESS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment