aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inputPlugins/mp3_plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c
index 6211ce085..f2329d25a 100644
--- a/src/inputPlugins/mp3_plugin.c
+++ b/src/inputPlugins/mp3_plugin.c
@@ -822,7 +822,9 @@ static int mp3Read(mp3DecodeData * data, OutputBuffer * cb, DecoderControl * dc,
} else if (data->dropSamplesAtEnd &&
(data->currentFrame == (data->maxFrames - data->dropFramesAtEnd))) {
samplesLeft--;
- if (samplesLeft < data->dropSamplesAtEnd) break;
+ /* stop decoding, since samples were dropped */
+ if (samplesLeft < data->dropSamplesAtEnd)
+ return DECODE_BREAK;
}
sample = (mpd_sint16 *) data->outputPtr;