summaryrefslogtreecommitdiff
path: root/lib/rbcodec/metadata/id3tags.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/metadata/id3tags.c')
-rw-r--r--lib/rbcodec/metadata/id3tags.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rbcodec/metadata/id3tags.c b/lib/rbcodec/metadata/id3tags.c
index 0e27c0305b..3d1d7e4d71 100644
--- a/lib/rbcodec/metadata/id3tags.c
+++ b/lib/rbcodec/metadata/id3tags.c
@@ -320,6 +320,13 @@ static int parsealbumart( struct mp3entry* entry, char* tag, int bufferpos )
320 entry->albumart.type = AA_TYPE_JPG; 320 entry->albumart.type = AA_TYPE_JPG;
321 tag += 5; 321 tag += 5;
322 } 322 }
323 else if (strcmp(tag, "jpg") == 0)
324 {
325 /* image/jpg is technically invalid, but it does occur in
326 * the wild */
327 entry->albumart.type = AA_TYPE_JPG;
328 tag += 4;
329 }
323 else if (strcmp(tag, "png") == 0) 330 else if (strcmp(tag, "png") == 0)
324 { 331 {
325 entry->albumart.type = AA_TYPE_PNG; 332 entry->albumart.type = AA_TYPE_PNG;