aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/id3v23_extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/id3v23_extractor.c')
-rw-r--r--src/plugins/id3v23_extractor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/id3v23_extractor.c b/src/plugins/id3v23_extractor.c
index 8e3e604..4b1b2d2 100644
--- a/src/plugins/id3v23_extractor.c
+++ b/src/plugins/id3v23_extractor.c
@@ -288,18 +288,18 @@ EXTRACTOR_id3v23_extract (const unsigned char *data,
288 switch (data[pos + 10]) 288 switch (data[pos + 10])
289 { 289 {
290 case 0x00: 290 case 0x00:
291 word = EXTRACTOR_common_convert_to_utf8 ((const char *) &data[pos + 14], 291 word = EXTRACTOR_common_convert_to_utf8 ((const char *) &data[pos + 15],
292 csize - 4, "ISO-8859-1"); 292 csize - 5, "ISO-8859-1");
293 break; 293 break;
294 case 0x01: 294 case 0x01:
295 word = EXTRACTOR_common_convert_to_utf8 ((const char *) &data[pos + 14], 295 word = EXTRACTOR_common_convert_to_utf8 ((const char *) &data[pos + 15],
296 csize - 4, "UCS-2"); 296 csize - 5, "UCS-2");
297 break; 297 break;
298 default: 298 default:
299 /* bad encoding byte, 299 /* bad encoding byte,
300 try to convert from iso-8859-1 */ 300 try to convert from iso-8859-1 */
301 word = EXTRACTOR_common_convert_to_utf8 ((const char *) &data[pos + 14], 301 word = EXTRACTOR_common_convert_to_utf8 ((const char *) &data[pos + 15],
302 csize - 4, "ISO-8859-1"); 302 csize - 5, "ISO-8859-1");
303 break; 303 break;
304 } 304 }
305 break; 305 break;