1
0
Fork 0
forked from len0rd/rockbox

Fixed silly overflow in recalculate_watermark()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3494 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2003-03-24 11:40:59 +00:00
parent df4cf2edc4
commit 27539aa828

View file

@ -509,7 +509,7 @@ static void recalculate_watermark(int bitrate)
/* A bitrate of 0 probably means empty VBR header. We play safe /* A bitrate of 0 probably means empty VBR header. We play safe
and set a high threshold */ and set a high threshold */
if(bitrate == 0) if(bitrate == 0)
bitrate = 320000; bitrate = 320;
bytes_per_sec = bitrate * 1000 / 8; bytes_per_sec = bitrate * 1000 / 8;