summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-03-24 11:40:59 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-03-24 11:40:59 +0000
commit27539aa8289ce6ee62fbd23afeb431efc1ebc503 (patch)
tree54c632b1489926199ebbc69d777c8ab0714ce955 /firmware
parentdf4cf2edc4500db8a0f09a676a2d03bf4f47c4ff (diff)
downloadrockbox-27539aa8289ce6ee62fbd23afeb431efc1ebc503.tar.gz
rockbox-27539aa8289ce6ee62fbd23afeb431efc1ebc503.zip
Fixed silly overflow in recalculate_watermark()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3494 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 e1312c7399..d191a30149 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -509,7 +509,7 @@ static void recalculate_watermark(int bitrate)
/* A bitrate of 0 probably means empty VBR header. We play safe
and set a high threshold */
if(bitrate == 0)
- bitrate = 320000;
+ bitrate = 320;
bytes_per_sec = bitrate * 1000 / 8;