]> git.sesse.net Git - vlc/commitdiff
Update FLAC/Vorbis cover scores to match ID3v2.
authorTimothy B. Terriberry <tterribe@xiph.org>
Thu, 25 Apr 2013 05:41:30 +0000 (22:41 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 25 Apr 2013 14:34:51 +0000 (16:34 +0200)
taglib.cpp had a completely ordered priority list of picture types to
use for album art from ID3v2 tags.
Since FLAC uses the same picture type field as ID3v2, use the same
priorities.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/vorbis.h

index d42163580ffb745ba68fc348c8fc1010fcb8beef..62603b5d685c09648da252cbfc76b7064e5a82e7 100644 (file)
 static input_attachment_t* ParseFlacPicture( const uint8_t *p_data, int i_data,
     int i_attachments, int *i_cover_score, int *i_cover_idx )
 {
+    /* TODO: Merge with ID3v2 copy in modules/meta_engine/taglib.cpp. */
     static const char pi_cover_score[] = {
-        0,      /* other */
-        2, 1,   /* icons */
-        10,     /* front cover */
-        9,      /* back cover */
-        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-        6,      /* movie/video screen capture */
-        0,
-        7,      /* Illustration */
-        8,      /* Band/Artist logotype */
-        0,      /* Publisher/Studio */
+        0,  /* Other */
+        5,  /* 32x32 PNG image that should be used as the file icon */
+        4,  /* File icon of a different size or format. */
+        20, /* Front cover image of the album. */
+        19, /* Back cover image of the album. */
+        13, /* Inside leaflet page of the album. */
+        18, /* Image from the album itself. */
+        17, /* Picture of the lead artist or soloist. */
+        16, /* Picture of the artist or performer. */
+        14, /* Picture of the conductor. */
+        15, /* Picture of the band or orchestra. */
+        9,  /* Picture of the composer. */
+        8,  /* Picture of the lyricist or text writer. */
+        7,  /* Picture of the recording location or studio. */
+        10, /* Picture of the artists during recording. */
+        11, /* Picture of the artists during performance. */
+        6,  /* Picture from a movie or video related to the track. */
+        1,  /* Picture of a large, coloured fish. */
+        12, /* Illustration related to the track. */
+        3,  /* Logo of the band or performer. */
+        2   /* Logo of the publisher (record company). */
     };
 
     int i_len;