summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 15:38:23 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 15:38:23 +0100
commit0d99d87a699acce9121c5948b5ddac795544284e (patch)
tree7992a33a80b9896f61aa76dfddb8aeb0fd9f2674 /src
parent4d4bf291725cf7874b0e7a9d16e2900b610014ce (diff)
downloadxine-lib-0d99d87a699acce9121c5948b5ddac795544284e.tar.gz
xine-lib-0d99d87a699acce9121c5948b5ddac795544284e.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/id3.c4
1 files changed, 2 insertions, 2 deletions
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;