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

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

(cherry picked from commit 17c4881762c30e3c966069318428ef292b8566f0)
parent 50243ce3
...@@ -891,7 +891,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -891,7 +891,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