From 87327cb931445ea643eaa2f5ea67667903d603c8 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Wed, 23 Aug 2006 14:06:16 +0000 Subject: 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 --- src/inputPlugins/mp3_plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3