Instead of ignoring mp2/mp3 files that start with a layer 1 frame, just skip the layer 1 frames looking for a layer 2 or 3 frame.

git-svn-id: https://svn.musicpd.org/mpd/trunk@4671 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2006-08-23 14:06:16 +00:00
parent 30bf8f89f4
commit 87327cb931

View File

@ -404,8 +404,7 @@ static int decodeNextFrameHeader(mp3DecodeData * data, MpdTag ** tag,
if (!data->layer) {
if (layer != MAD_LAYER_II && layer != MAD_LAYER_III) {
/* Only layer 2 and 3 have been tested to work */
DEBUG("MPEG audio file is not layer 2 or 3\n");
return DECODE_BREAK;
return DECODE_SKIP;
}
data->layer = layer;
} else if (layer != data->layer) {