diff options
-rw-r--r-- | lib/stream.lib.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/stream.lib.php b/lib/stream.lib.php index c39282a6..8d5dcf42 100644 --- a/lib/stream.lib.php +++ b/lib/stream.lib.php @@ -267,6 +267,11 @@ function validate_bitrate($bitrate) { return $sample_rate; } + /* See if it's less than the lowest one */ + if ($sample_rate < $valid_rate['0']) { + return $valid_rate['0']; + } + /* Check to see if it's over 320 */ if ($sample_rate > 320) { return '320'; |