vlc | branch: master | Anatoliy Anischovich <[email protected]> | 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 <[email protected]>

> 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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to