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 build of FFmpeg with libx265 X265_BUILD >= 210 and X265_BUILD < 213 (fixes/34) #970

Open
wants to merge 2 commits into
base: fixes/34
Choose a base branch
from

Conversation

ulmus-scott
Copy link
Contributor

Closes #966

I do not recommend applying this to master since the update to FFmpeg 7.1 will fix this.

x265 added support for alpha starting with build 210.
While doing so, x265_encoder_encode() changed its fifth arg to
an array of pointers to x265_picture. This broke building lavc/libx265.c

This patch simply unbreaks the build and maintains existing single-layer
non-alpha encoding support.

Fixes #11130

(cherry picked from commit 1f801dfdb5066aadf0ade9cb5e94d620f33eacdc)
Earlier, x265 made an API change to support alpha and
other multiple layer pictures. We added guards to accommodate
that in 1f801dfdb5

They have now reverted that API change in
https://bitbucket.org/multicoreware/x265_git/commits/78e5b703b1

Updated our wrapper guards to unbreak build again.

(cherry picked from commit 099f88b8641dfc299f3896d17d9addc5b9ae7799)
@hamelg
Copy link
Contributor

hamelg commented Dec 23, 2024

please, accept this PR.

@bennettpeter
Copy link
Member

FFMpeg 7.1 has been incorporated into branch https://github.com/MythTV/mythtv/tree/devel/ffmpeg-resync . That will be included in master in a week from now unless there are problems. Does that solve the problem you are addressing here?

@bennettpeter bennettpeter self-assigned this Dec 23, 2024
@hamelg
Copy link
Contributor

hamelg commented Dec 23, 2024

Yes, absolutely.
Arch users must apply this patch to build successfully the aur package mythtv-git 34.0.
https://aur.archlinux.org/packages/mythtv-git

@ulmus-scott
Copy link
Contributor Author

@bennettpeter this is for fixes/34 not master.

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.

4 participants