summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorHenrik Backe <henrik@backe.eu>2005-07-08 09:55:22 +0000
committerHenrik Backe <henrik@backe.eu>2005-07-08 09:55:22 +0000
commita670e341cc0413b19fe69917eefc24ae62877e8f (patch)
tree82835e66876259cdf7d4ad495faad78526b82f68 /firmware
parent8f895def2c6f850e6832b67f3659b2e07c4d2c05 (diff)
downloadrockbox-a670e341cc0413b19fe69917eefc24ae62877e8f.tar.gz
rockbox-a670e341cc0413b19fe69917eefc24ae62877e8f.zip
Fixed skip bug at buffer refill
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7064 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index d20981be7b..c83227267f 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -167,7 +167,7 @@ static void remove_all_tags(void)
static struct trackdata *get_trackdata(int offset)
{
- if(offset > num_tracks_in_memory())
+ if(offset >= num_tracks_in_memory())
return NULL;
else
return &trackdata[(track_read_idx + offset) & MAX_TRACK_ENTRIES_MASK];