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

Rafaël Carré funman at videolan.org
Mon May 21 20:17:35 CEST 2012


Le 2012-05-21 13:03, Edward Wang a écrit :
> 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=")))

Which software writes this tag?



More information about the vlc-devel mailing list