Fixed crash when supplying FFMPEG_BINARY environment variable (#30022)
This commit is contained in:
parent
75163d9daf
commit
1ca6ff8ca5
4 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
if ENV['FFMPEG_BINARY'].present?
|
||||
FFMPEG.ffmpeg_binary = ENV['FFMPEG_BINARY']
|
||||
Rails.application.configure do
|
||||
config.x.ffmpeg_binary = ENV['FFMPEG_BINARY'] || 'ffmpeg'
|
||||
config.x.ffprobe_binary = ENV['FFPROBE_BINARY'] || 'ffprobe'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue