Skip to content

Fix build with ffmpeg 8#1018

Open
marillat wants to merge 2 commits intoOpenShot:developfrom
marillat:patch-1
Open

Fix build with ffmpeg 8#1018
marillat wants to merge 2 commits intoOpenShot:developfrom
marillat:patch-1

Conversation

@marillat
Copy link
Copy Markdown

@marillat marillat commented Sep 5, 2025

No description provided.

case AV_CODEC_ID_H264:
video_codec_ctx->max_b_frames = 0; // At least this GPU doesn't support b-frames
video_codec_ctx->profile = FF_PROFILE_H264_BASELINE | FF_PROFILE_H264_CONSTRAINED;
video_codec_ctx->profile = AV_PROFILE_H264_BASELINE | AV_PROFILE_H264_BASELINE;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're changing *_H264_CONSTRAINED to *_H264_BASELINE here, is that intentional?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course should be AV_PROFILE_H264_CONSTRAINED
Fixed in 737c9c8

@rathann
Copy link
Copy Markdown

rathann commented Oct 20, 2025

FYI, these definitions were deprecated back in FFmpeg 6.1 (FFmpeg/FFmpeg@8238bc0) two years ago.

rathann added a commit to rathann/libopenshot that referenced this pull request Dec 19, 2025
Fixes build with FFmpeg 8, where `FF_PROFILE_*` enums were replaced with
`AV_PROFILE_*` and side_data API was replaced with codecpar.

References:
FFmpeg/FFmpeg@8238bc0
FFmpeg/FFmpeg@5432d2a

Supersedes OpenShot#1018 .

Fixes OpenShot#1028 .
@github-actions github-actions bot added the conflicts A PR with unresolved merge conflicts label Mar 22, 2026
@github-actions
Copy link
Copy Markdown

Merge conflicts have been detected on this PR, please resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts A PR with unresolved merge conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants