From 262d240ce3f1ea2a7e18f1d9472338b530ce95f1 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 15 Oct 2012 21:28:48 +0200 Subject: changed license to ZLIB on all core files --- junklib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'junklib.c') diff --git a/junklib.c b/junklib.c index b3c72034..4e55e749 100644 --- a/junklib.c +++ b/junklib.c @@ -1,6 +1,9 @@ -/* junklib -- library for reading tags from various audio files for deadbeef player +/* + This file is part of Deadbeef Player source code http://deadbeef.sourceforge.net + library for reading tags from various audio files + Copyright (C) 2009-2012 Alexey Yakovenko This software is provided 'as-is', without any express or implied -- cgit v1.2.3 From 5c48e32c20267eb92e691ee0dd543dd7b695c655 Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 17 Oct 2012 17:47:42 +0200 Subject: fixed apev2 parser bug which replaces all 0s with \n in binary fields; added workaround for "cover art" fields, apparently some taggers mark them as text --- junklib.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'junklib.c') diff --git a/junklib.c b/junklib.c index 4e55e749..4e749eaf 100644 --- a/junklib.c +++ b/junklib.c @@ -1363,13 +1363,15 @@ junk_apev2_read_full (playItem_t *it, DB_apev2_tag_t *tag_store, DB_FILE *fp) { } value[itemsize] = 0; - // replace 0s with \n - uint8_t *p = value; - while (p < value + itemsize - 1) { - if (*p == 0) { - *p = '\n'; + if ((flags&6) == 0 && strncasecmp (key, "cover art ", 10)) { + // replace 0s with \n + uint8_t *p = value; + while (p < value + itemsize - 1) { + if (*p == 0) { + *p = '\n'; + } + p++; } - p++; } junk_apev2_add_frame (it, tag_store, &tail, itemsize, itemflags, key, value); -- cgit v1.2.3