From 0d99d87a699acce9121c5948b5ddac795544284e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 13 Dec 2007 15:38:23 +0100 Subject: Use the new id3_signature parameter in id3v2_parse_header. --HG-- extra : transplant_source : %E4%DB%7ER%B2e%A0%FE%DF%03%BE%25%09%22%ADa%9D%CE%F4%87 --- src/demuxers/id3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/demuxers/id3.c b/src/demuxers/id3.c index 0ec1cdaa5..27b61391c 100644 --- a/src/demuxers/id3.c +++ b/src/demuxers/id3.c @@ -233,13 +233,13 @@ static int id3v2_parse_header(input_plugin_t *input, uint32_t id3_signature, id3v2_header_t *tag_header) { uint8_t buf[6]; - tag_header->id = _X_BE_32(mp3_frame_header); + tag_header->id = be2me_32(id3_signature); if (input->read (input, buf, 6) == 6) { tag_header->revision = buf[0]; tag_header->flags = buf[1]; tag_header->size = _X_BE_32_synchsafe(&buf[2]); - lprintf("tag: ID3 v2.%d.%d\n", mp3_frame_header[3], tag_header->revision); + lprintf("tag: ID3 v2.%d.%d\n", tag_header->id & 0xFF, tag_header->revision); lprintf("flags: %d\n", tag_header->flags); lprintf("size: %d\n", tag_header->size); return 1; -- cgit v1.2.3