From 42304296e8a79e3fd0240c8978c9e3bb6df9745d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 13 Dec 2007 16:21:44 +0100 Subject: Use id3v2_istag rather than manual comparison. --HG-- extra : transplant_source : %17IS%B7%1D%94%89f%9B%88%DEU%3E%25q%05%1DBw%87 --- src/demuxers/demux_mpgaudio.c | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3