[vlc-commits] avformat: validate encoding of meta informations (fixes #8390)
Rémi Denis-Courmont
git at videolan.org
Sat Apr 6 23:07:45 CEST 2013
vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 7 00:02:41 2013 +0300| [358615415872d760a2b457dbe8074ebcbbfdfbfd] | committer: Rémi Denis-Courmont
avformat: validate encoding of meta informations (fixes #8390)
(cherry picked from commit 17c4881762c30e3c966069318428ef292b8566f0)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=358615415872d760a2b457dbe8074ebcbbfdfbfd
---
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 d888b36..cf6aae2 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -891,7 +891,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