From dc07503ad4f6f9722baddddca5ba7abe22ec34ba Mon Sep 17 00:00:00 2001 From: Nick Peskett Date: Sun, 18 Dec 2011 02:08:10 +0000 Subject: [PATCH] I forgot to flip the true response from memcmp git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31350 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata/id3tags.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/metadata/id3tags.c b/apps/metadata/id3tags.c index 7e767c7268..6fd6b154e5 100644 --- a/apps/metadata/id3tags.c +++ b/apps/metadata/id3tags.c @@ -1007,9 +1007,9 @@ void setid3v2title(int fd, struct mp3entry *entry) char_enc = CHAR_ENC_ISO_8859_1; break; case 0x01: - if (memcmp(tag, "\1\xfe\xff", 3)) + if (!memcmp(tag, "\1\xfe\xff", 3)) char_enc = CHAR_ENC_UTF_16_BE; - else if (memcmp(tag, "\1\xff\xfe", 3)) + else if (!memcmp(tag, "\1\xff\xfe", 3)) char_enc = CHAR_ENC_UTF_16_LE; /* \1 + BOM(2) + C0U0E0S0H0E0E0T000 = 21 */ cuesheet_offset = 21;