[vlc-commits] vorbis demux: convert generic field names to uppercase (fix #8105)
Anatoliy Anischovich
git at videolan.org
Fri Mar 8 19:16:09 CET 2013
vlc | branch: master | Anatoliy Anischovich <lin.aaa.lin at gmail.com> | Fri Mar 8 15:07:04 2013 +0200| [5ccd1fdebb8e03eee801f645f2792c40a535296e] | committer: Rémi Denis-Courmont
vorbis demux: convert generic field names to uppercase (fix #8105)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ccd1fdebb8e03eee801f645f2792c40a535296e
---
modules/demux/vorbis.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/vorbis.h b/modules/demux/vorbis.h
index 2642c4b..ccb3d7f 100644
--- a/modules/demux/vorbis.h
+++ b/modules/demux/vorbis.h
@@ -221,6 +221,11 @@ static inline void vorbis_ParseComment( vlc_meta_t **pp_meta,
* undocumented tags and replay gain ) */
char *p = strchr( psz_comment, '=' );
*p++ = '\0';
+
+ for( int i = 0; psz_comment[i]; i++ )
+ if( psz_comment[i] >= 'a' && psz_comment[i] <= 'z' )
+ psz_comment[i] -= 'a' - 'A';
+
vlc_meta_AddExtra( p_meta, psz_comment, p );
}
#undef IF_EXTRACT
More information about the vlc-commits
mailing list