diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-08-06 17:02:56 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-08-06 17:02:56 +0000 |
commit | eb2b8261794cadde0becbcfc50a0049f52dc05f2 (patch) | |
tree | 34300380dc5287cfabcf25c3991fa863a387dfb5 /lib/class/stream.class.php | |
parent | 8b733244acee4f2416d78569f7a403488397e69c (diff) | |
download | ampache-eb2b8261794cadde0becbcfc50a0049f52dc05f2.tar.gz ampache-eb2b8261794cadde0becbcfc50a0049f52dc05f2.tar.bz2 ampache-eb2b8261794cadde0becbcfc50a0049f52dc05f2.zip |
make the ip history only clear the old stuff sometimes, also fix rounding issues on the downsampling
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r-- | lib/class/stream.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 1800990d..511f450b 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -587,7 +587,7 @@ class Stream { /* Never Upsample a song */ if (($sample_rate*1000) > $song->bitrate) { - $sample_rate = self::validate_bitrate($song->bitrate)/1000; + $sample_rate = self::validate_bitrate($song->bitrate/1000); $sample_ratio = '1'; } else { |