vlc | branch: master | Edward Wang <[email protected]> | Mon May 21 
13:03:00 2012 -0400| [ae4fda5b4ab4d6efaea129d85af5dd95da9784d4] | committer: 
Jean-Baptiste Kempf

vorbis: also check comments for comment metadata

The comments field is also encoded as "COMMENTS=" instead of description. For 
example, Audacity encodes the comment box as "COMMENTS=" instead of 
"DESCRIPTION=".

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae4fda5b4ab4d6efaea129d85af5dd95da9784d4
---

 modules/demux/vorbis.h |    4 ++++
 1 file changed, 4 insertions(+)

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=")))

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

Reply via email to