summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 16:21:44 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 16:21:44 +0100
commit42304296e8a79e3fd0240c8978c9e3bb6df9745d (patch)
treedfc13ac127a431dd9cb0628479431eb3983f915a
parent734004e1e3e0dba0805536c4698bfb1f5e9cf0d1 (diff)
downloadxine-lib-42304296e8a79e3fd0240c8978c9e3bb6df9745d.tar.gz
xine-lib-42304296e8a79e3fd0240c8978c9e3bb6df9745d.tar.bz2
Use id3v2_istag rather than manual comparison.
--HG-- extra : transplant_source : %17IS%B7%1D%94%89f%9B%88%DEU%3E%25q%05%1DBw%87
-rw-r--r--src/demuxers/demux_mpgaudio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c
index d4e3d8473..45f65cec5 100644
--- a/src/demuxers/demux_mpgaudio.c
+++ b/src/demuxers/demux_mpgaudio.c
@@ -686,9 +686,7 @@ static int detect_mpgaudio_file(input_plugin_t *input) {
lprintf("got preview %08x\n", head);
- if ((head == ID3V22_TAG) ||
- (head == ID3V23_TAG) ||
- (head == ID3V24_TAG)) {
+ if (id3v2_istag(head)) {
/* check if a mp3 frame follows the tag
* id3v2 are not specific to mp3 files,
* flac files can contain id3v2 tags