Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed crash when supplying FFMPEG_BINARY environment variable #30022

Conversation

timothyjrogers
Copy link
Contributor

@timothyjrogers timothyjrogers commented Apr 21, 2024

Fixes #28375

The code that picks up FFMPEG_BINARY as an environment variable in config/initializers/ffmpeg.rb currently assigns it to an object that doesn't exist anywhere in the code base. This change updates that assignment to use the config.x custom config object used for other custom config options, as well as adding a check for the new environment variable FFPROBE_BINARY. The new variable is because one of the the three locations Mastodon uses ffmpeg actually uses the ffprobe utility and these have separate binary files.

@ClearlyClaire ClearlyClaire added bug Something isn't working to backport PR needed to be backported labels Apr 22, 2024
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Apr 22, 2024
Merged via the queue into mastodon:main with commit 1ca6ff8 Apr 22, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to backport PR needed to be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when setting FFMPEG_BINARY to override ffmpeg binary path
2 participants