[vlc-devel] [PATCH] vorbis: also check comments for comment metadata

Edward Wang edward.c.wang at compdigitec.com
Mon May 21 19:03:00 CEST 2012


The comments field is also encoded as "COMMENTS=" instead of description. For example, Audacity encodes the comment box as "COMMENTS=" instead of "DESCRIPTION=".
---
 modules/demux/vorbis.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/demux/vorbis.h b/modules/demux/vorbis.h
index 2de6bc0..3110c05 100644
--- a/modules/demux/vorbis.h
+++ b/modules/demux/vorbis.h
@@ -155,6 +155,10 @@ static inline void vorbis_ParseComment( vlc_meta_t **pp_meta, const uint8_t *p_d
         else IF_EXTRACT("COPYRIGHT=", Copyright )
         else IF_EXTRACT("ORGANIZATION=", Publisher )
         else IF_EXTRACT("DESCRIPTION=", Description )
+        else if( !hasDescription )
+        {
+            IF_EXTRACT("COMMENTS=", Description )
+        }
         else IF_EXTRACT("GENRE=", Genre )
         else IF_EXTRACT("DATE=", Date )
         else if( !strncasecmp( psz, "METADATA_BLOCK_PICTURE=", strlen("METADATA_BLOCK_PICTURE=")))
-- 
1.7.5.4




More information about the vlc-devel mailing list