summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Mattern <thibaut.mattern@gmail.com>2008-02-15 09:33:51 +0100
committerThibaut Mattern <thibaut.mattern@gmail.com>2008-02-15 09:33:51 +0100
commitac63f46f26fa2bc9a0be9feacae52d55249685be (patch)
tree1fa9d12443b6a4ec52e540b6e95cd45e6c52fd61
parenta53d75fb7fd3bbe4bc619658fe9ed7ed1b4f2879 (diff)
downloadxine-lib-ac63f46f26fa2bc9a0be9feacae52d55249685be.tar.gz
xine-lib-ac63f46f26fa2bc9a0be9feacae52d55249685be.tar.bz2
Fixed endianess problem.
This should allow big ID3v2 tag to be parsed (i mean tags with embedded pictures). (transplanted from ebb0d5507d3208f8e73af78f912230719d37830a) --HG-- extra : transplant_source : %EB%B0%D5P%7D2%08%F8%E7%3A%F7%8F%91%220q%9D7%83%0A
-rw-r--r--src/demuxers/demux_mpgaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c
index 56759dd4b..648f04410 100644
--- a/src/demuxers/demux_mpgaudio.c
+++ b/src/demuxers/demux_mpgaudio.c
@@ -725,8 +725,8 @@ static int demux_mpgaudio_next (demux_mpgaudio_t *this, int decoder_flags, int s
/* the stream is broken, don't keep info about previous frames */
this->free_bitrate_size = 0;
- if ( id3v2_istag(header) ) {
- if (!id3v2_parse_tag(this->input, this->stream, header)) {
+ if ( id3v2_istag(_X_ME_32(header)) ) {
+ if (!id3v2_parse_tag(this->input, this->stream, _X_ME_32(header))) {
xprintf(this->stream->xine, XINE_VERBOSITY_LOG,
LOG_MODULE ": ID3V2 tag parsing error\n");
bytes = 1; /* resync */