Add support for mp1/2. Thanks to Stephan Beyer for the patch.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4458 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
073970ec4a
commit
356f16a877
@ -378,7 +378,10 @@ static int decodeNextFrameHeader(mp3DecodeData * data, MpdTag ** tag,
|
||||
}
|
||||
}
|
||||
}
|
||||
if (data->frame.header.layer != MAD_LAYER_III) {
|
||||
if ((data->frame.header.layer != MAD_LAYER_III) &&
|
||||
(data->frame.header.layer != MAD_LAYER_II) &&
|
||||
(data->frame.header.layer != MAD_LAYER_I)) {
|
||||
DEBUG("HERE 1\n");
|
||||
return DECODE_SKIP;
|
||||
}
|
||||
|
||||
@ -923,7 +926,7 @@ static MpdTag *mp3_tagDup(char *file)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static char *mp3_suffixes[] = { "mp3", NULL };
|
||||
static char *mp3_suffixes[] = { "mp3", "mp2", NULL };
|
||||
static char *mp3_mimeTypes[] = { "audio/mpeg", NULL };
|
||||
|
||||
InputPlugin mp3Plugin = {
|
||||
|
Loading…
Reference in New Issue
Block a user