From 43e943d61dffe5db36c257e9bc255c039f171e31 Mon Sep 17 00:00:00 2001 From: Calvin Walton Date: Fri, 25 Sep 2015 14:08:17 -0400 Subject: [PATCH] Need to convert bit_rate to an integer --- record-and-playback/core/lib/recordandplayback/edl/audio.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/record-and-playback/core/lib/recordandplayback/edl/audio.rb b/record-and-playback/core/lib/recordandplayback/edl/audio.rb index 1a84d57913..2eefc6934e 100644 --- a/record-and-playback/core/lib/recordandplayback/edl/audio.rb +++ b/record-and-playback/core/lib/recordandplayback/edl/audio.rb @@ -183,7 +183,7 @@ module BigBlueButton # wav files generated by freeswitch can have incorrect length # field if longer than 4GB, so recalculate based on filesize (ouch!) audio_size = info[:format][:size] - 44 # wav header is 44 bytes. - info[:duration] = (audio_size.to_r * 8 / info[:audio][:bit_rate] * 1000).to_i + info[:duration] = (audio_size.to_r * 8 / info[:audio][:bit_rate].to_i * 1000).to_i else info[:duration] = (info[:format][:duration].to_r * 1000).to_i end