summaryrefslogtreecommitdiffstats
path: root/apps/metadata/id3tags.c
diff options
context:
space:
mode:
authorNick Peskett <rockbox@peskett.co.uk>2011-12-18 02:08:10 +0000
committerNick Peskett <rockbox@peskett.co.uk>2011-12-18 02:08:10 +0000
commitdc07503ad4f6f9722baddddca5ba7abe22ec34ba (patch)
tree4ee31f8fd81b56aa5d14c2cf878ceb256f6c84fb /apps/metadata/id3tags.c
parent6aa070268fd95a880eeb475a63bac5e0060ea76f (diff)
downloadrockbox-dc07503ad4f6f9722baddddca5ba7abe22ec34ba.tar.gz
rockbox-dc07503ad4f6f9722baddddca5ba7abe22ec34ba.tar.bz2
rockbox-dc07503ad4f6f9722baddddca5ba7abe22ec34ba.zip
I forgot to flip the true response from memcmp
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31350 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/id3tags.c')
-rw-r--r--apps/metadata/id3tags.c4
1 files 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;