I forgot to flip the true response from memcmp

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31350 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nick Peskett 2011-12-18 02:08:10 +00:00
parent 6aa070268f
commit dc07503ad4

View file

@ -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;