diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-05-29 19:08:15 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-05-29 19:08:15 +0200 |
commit | b681e2018ab1e212195aa5dfa1fb03cb69533e62 (patch) | |
tree | f657319e7d8507aa9571f8d277408f161a42fd66 /src/demuxers/demux_mpgaudio.c | |
parent | dcd3bdb0ea6df1a110f317ad4d8995653d9ba5a9 (diff) | |
download | xine-lib-b681e2018ab1e212195aa5dfa1fb03cb69533e62.tar.gz xine-lib-b681e2018ab1e212195aa5dfa1fb03cb69533e62.tar.bz2 |
Actually id3v2_tagsize was used by demux_mpgaudio and demux_aac; but as it makes little sense, move BE_*_synchsafe functions from id3.c to id3.h and declare them inline, then BE_32_synchsafe can be replaced to id3v2_tagsize as drop in.
Diffstat (limited to 'src/demuxers/demux_mpgaudio.c')
-rw-r--r-- | src/demuxers/demux_mpgaudio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c index 31b2d33ff..f675e227a 100644 --- a/src/demuxers/demux_mpgaudio.c +++ b/src/demuxers/demux_mpgaudio.c @@ -697,8 +697,7 @@ static int detect_mpgaudio_file(input_plugin_t *input) { * id3v2 are not specific to mp3 files, * flac files can contain id3v2 tags */ - uint8_t *ptr = &buf[6]; - uint32_t tag_size = id3v2_tagsize(ptr); + uint32_t tag_size = BE_32_synchsafe(&buf[6]); lprintf("try to skip id3v2 tag (%d bytes)\n", tag_size); if ((10 + tag_size) >= preview_len) { lprintf("cannot skip id3v2 tag\n"); |