summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-03-24 11:35:53 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-03-24 11:35:53 +0000
commitdf4cf2edc4500db8a0f09a676a2d03bf4f47c4ff (patch)
tree86d390f64716ff90cc9de3aa390a128cc596f953 /firmware
parent8ab8d7d8ac43bfb87742926c975a9c0307d815a4 (diff)
downloadrockbox-df4cf2edc4500db8a0f09a676a2d03bf4f47c4ff.tar.gz
rockbox-df4cf2edc4500db8a0f09a676a2d03bf4f47c4ff.zip
Reverted last change
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3493 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mp3data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/mp3data.c b/firmware/mp3data.c
index 43689b0ef9..c0434791c2 100644
--- a/firmware/mp3data.c
+++ b/firmware/mp3data.c
@@ -163,7 +163,9 @@ static bool mp3headerinfo(struct mp3info *info, unsigned long header)
/* Bitrate */
bitindex = (header & 0xf000) >> 12;
info->bitrate = bitrate_table[bittable][info->layer][bitindex];
-
+ if(info->bitrate == 0)
+ return false;
+
/* Sampling frequency */
freqindex = (header & 0x0C00) >> 10;
info->frequency = freqtab[info->version][freqindex];