Fix some reference errors in wav detection
This commit is contained in:
parent
1dcd49e180
commit
530799776d
@ -136,7 +136,7 @@ module BigBlueButton
|
||||
ffmpeg_inputs.each do |input|
|
||||
ffmpeg_cmd += ['-ss', ms_to_s(input[:seek])]
|
||||
# Ensure that the entire contents of freeswitch wav files are read
|
||||
if audioinfo[audio[:filename]][:format][:format_name] == 'wav'
|
||||
if audioinfo[input[:filename]][:format][:format_name] == 'wav'
|
||||
ffmpeg_cmd += ['-ignore_length', '1']
|
||||
end
|
||||
ffmpeg_cmd += ['-i', input[:filename]]
|
||||
@ -179,7 +179,7 @@ module BigBlueButton
|
||||
info[:sample_rate] = info[:audio][:sample_rate].to_i
|
||||
end
|
||||
|
||||
if info[:audio][:format_name] == 'wav'
|
||||
if info[:format][:format_name] == 'wav'
|
||||
# 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.
|
||||
|
Loading…
Reference in New Issue
Block a user