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

Fix Building Against Newer Version Of FFmpeg #1537

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Conversation

CuriousTommy
Copy link
Contributor

Resolves #1525

When building against a newer version:
* Use `ch_layout.order` & `ch_layout.nb_channels` instead of `channel_layout` & `channels`.
*  Workaround `read_probe` no longer being exposed by calling `av_probe_input_format`
Fortunately, the FFmpeg package in Ubuntu 20.04 also has the `av_probe_input_format` method. Therefore, we can remove the old code.
@CuriousTommy
Copy link
Contributor Author

CuriousTommy commented Aug 19, 2024

I'm not actually sure if what I pushed is the correct solution, but at least it allows for distros, with a newer version of FFmpeg to successfully build Darling.

@CuriousTommy CuriousTommy merged commit 1fa31db into master Aug 30, 2024
4 checks passed
@CuriousTommy CuriousTommy deleted the ffmpeg_fix branch August 30, 2024 00:40
@CuriousTommy
Copy link
Contributor Author

I'll let future me deal with any regressions caused by this change. Right now it's more important for Darling to build successfully then it is to have working audio.

ghpzin added a commit to ghpzin/nixpkgs that referenced this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't build on Arch linux (FFmpeg)
1 participant