Skip to content

Support FFmpeg 7.0#1017

Merged
kaamui merged 2 commits into
OpenBoard-org:devfrom
Vekhir:support-ffmpeg-7.0
Aug 13, 2024
Merged

Support FFmpeg 7.0#1017
kaamui merged 2 commits into
OpenBoard-org:devfrom
Vekhir:support-ffmpeg-7.0

Conversation

@Vekhir
Copy link
Copy Markdown
Contributor

@Vekhir Vekhir commented Jun 18, 2024

With FFmpeg 7.0 entering Arch Linux extra-testing, it's a good time to get support for it in OpenBoard.

This PR fixes the compilation errors and resolves related warnings.
The proposed alternatives are available since 5.1 at least, so the pragmas could be lowered to get rid of warnings in previous versions - I've elected to keep the change as small as possible, so the fix only applies to version 7.0.

I'd like to have this commit merged before Arch upgrades FFmpeg to general availability, though I don't have a timeline for when that will happen. A new release of OpenBoard is not necessary.

Fixes #1002

Vekhir added 2 commits June 18, 2024 06:18
The `channels` attribute was deprecated for a long time and has finally
been removed with 7.0.
Use `ch_layout.nb_channels` which is the recommended alternative.
`avcodec_close` has been discouraged from use since 2.3 and is
formally deprecated with 7.0. Use `avcodec_free_context` instead.

`avcodec_free_context` takes a double pointer as argument.
@Vekhir
Copy link
Copy Markdown
Contributor Author

Vekhir commented Jun 21, 2024

FFmpeg 7 has been released on Arch. Deviating from usual practice, I've updated the AUR package with this patch to keep it building and allow OpenBoard to continue running. I don't expect any issues.

@kaamui kaamui merged commit be9bd1c into OpenBoard-org:dev Aug 13, 2024
@Vekhir Vekhir deleted the support-ffmpeg-7.0 branch August 13, 2024 11:14
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.

3 participants