[vlc-commits] avformat: validate encoding of meta informations (fixes #8390)
Rémi Denis-Courmont
git at videolan.org
Sat Apr 6 23:03:52 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 7 00:02:41 2013 +0300| [17c4881762c30e3c966069318428ef292b8566f0] | committer: Rémi Denis-Courmont
avformat: validate encoding of meta informations (fixes #8390)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17c4881762c30e3c966069318428ef292b8566f0
---
modules/demux/avformat/demux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 4e48d31..d2e17cf 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -897,7 +897,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
continue;
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 );
}
return VLC_SUCCESS;
More information about the vlc-commits
mailing list