diff options
-rw-r--r-- | apps/metadata/id3tags.c | 4 |
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) | |||
1007 | char_enc = CHAR_ENC_ISO_8859_1; | 1007 | char_enc = CHAR_ENC_ISO_8859_1; |
1008 | break; | 1008 | break; |
1009 | case 0x01: | 1009 | case 0x01: |
1010 | if (memcmp(tag, "\1\xfe\xff", 3)) | 1010 | if (!memcmp(tag, "\1\xfe\xff", 3)) |
1011 | char_enc = CHAR_ENC_UTF_16_BE; | 1011 | char_enc = CHAR_ENC_UTF_16_BE; |
1012 | else if (memcmp(tag, "\1\xff\xfe", 3)) | 1012 | else if (!memcmp(tag, "\1\xff\xfe", 3)) |
1013 | char_enc = CHAR_ENC_UTF_16_LE; | 1013 | char_enc = CHAR_ENC_UTF_16_LE; |
1014 | /* \1 + BOM(2) + C0U0E0S0H0E0E0T000 = 21 */ | 1014 | /* \1 + BOM(2) + C0U0E0S0H0E0E0T000 = 21 */ |
1015 | cuesheet_offset = 21; | 1015 | cuesheet_offset = 21; |