From 9758911be0c63de3dc5e42e9720f933effe5ad87 Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Thu, 1 Dec 2005 21:09:09 +0000 Subject: iRiver: re-add an end of file check, to see if it helps the reported problems with gapless MP3 playback. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8119 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/mpa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index 0f575924d0..281a7abba1 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -220,6 +220,7 @@ next_track: if (max < 0) max = 0; if (max < framelength) framelength = (int)max; + if (framelength == 0 && frame_skip == 0) break; } /* Check if sample rate and stereo settings changed in this frame. */ -- cgit v1.2.3