Skip to content

Support FFmpeg 9 - #850

Open
bevanjkay wants to merge 1 commit into
TASEmulators:masterfrom
bevanjkay:ffmpeg-9
Open

Support FFmpeg 9#850
bevanjkay wants to merge 1 commit into
TASEmulators:masterfrom
bevanjkay:ffmpeg-9

Conversation

@bevanjkay

Copy link
Copy Markdown

Fixes #849

FFmpeg 7.1 deprecated the AVCodec capability arrays in favour of avcodec_get_supported_config(), and FFmpeg 9 removed them.

This adds four small accessors next to the FFmpeg includes that call the new API on FFmpeg >= 7.1 and fall back to the old fields below that, then reads each array into a local at the six call sites (video pixel format selection, select_audio_channel_layout, audio sample format/rate selection, and the three encoder option dropdowns). The channel_layouts blocks needed no change as they are already excluded on newer FFmpeg.


Tested in Homebrew/homebrew-core#298042

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.

Does not build with FFmpeg 9

1 participant