[vlc-devel] [PATCH 2/3] Fix #8105
Anatoliy Anischovich
lin.aaa.lin at gmail.com
Fri Mar 8 01:43:02 CET 2013
Vorbis comment's field names are case insensitive, so convert them to uppercase.
---
modules/demux/vorbis.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/modules/demux/vorbis.h b/modules/demux/vorbis.h
index 2642c4b..7cabe6e 100644
--- a/modules/demux/vorbis.h
+++ b/modules/demux/vorbis.h
@@ -221,6 +221,17 @@ static inline void vorbis_ParseComment( vlc_meta_t **pp_meta,
* undocumented tags and replay gain ) */
char *p = strchr( psz_comment, '=' );
*p++ = '\0';
+
+ int i=0;
+ while (psz[i])
+ {
+ /* ASCII 0x41 through 0x5A inclusive (A-Z) is to be considered
+ * equivalent to ASCII 0x61 through 0x7A inclusive (a-z). */
+ if ( psz[i] >= 'a' && psz[i] <= 'z' )
+ psz[i] ^= ' ';
+ ++i;
+ }
+
vlc_meta_AddExtra( p_meta, psz_comment, p );
}
#undef IF_EXTRACT
--
1.8.1.5
More information about the vlc-devel
mailing list