]> git.sesse.net Git - vlc/commit
Use FLAC's picture selection for Vorbis/Opus.
authorTimothy B. Terriberry <tterribe@xiph.org>
Thu, 25 Apr 2013 04:52:52 +0000 (21:52 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 25 Apr 2013 14:34:47 +0000 (16:34 +0200)
commit7af45378c3d8471682f07bc7075b8534e3f03773
tree8acb127f782663f49b8387d6d33fb775d5289622
parente4673369e8356c84ca99b66fb222dee07c8e4962
Use FLAC's picture selection for Vorbis/Opus.

When multiple pictures are embedded in a file, the FLAC demuxer
prioritizes them based on the picture type.
This ports the same algorithm over so it can be used by Vorbis and Opus.
It also extends its behavior for FLAC to work with both pictures
embedded in VORBIS_COMMENT blocks and in normal PICTURE blocks.

This also plugs a memory leak in vorbis_ParseComment() when parsing
METADATA_BLOCK_PICTURE tags.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/flac.c
modules/demux/ogg.c
modules/demux/vorbis.h
modules/meta_engine/taglib.cpp