mirror of https://github.com/mastodon/mastodon
Fixed crash when supplying FFMPEG_BINARY environment variable (#30022)
parent
75163d9daf
commit
1ca6ff8ca5
@ -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…
Reference in New Issue