diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2006-08-23 14:06:16 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2006-08-23 14:06:16 +0000 |
commit | 87327cb931445ea643eaa2f5ea67667903d603c8 (patch) | |
tree | 2084881dbfaad8b151ffb9ce40ef6c5b2220fa8c /src | |
parent | 30bf8f89f40be2ee0eafa61f43e111e5f571f9ad (diff) | |
download | mpd-87327cb931445ea643eaa2f5ea67667903d603c8.tar.gz mpd-87327cb931445ea643eaa2f5ea67667903d603c8.tar.xz mpd-87327cb931445ea643eaa2f5ea67667903d603c8.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/inputPlugins/mp3_plugin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c index 35f822b1e..899bb1682 100644 --- a/src/inputPlugins/mp3_plugin.c +++ b/src/inputPlugins/mp3_plugin.c @@ -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) { |