Skip to content

Conversation

@marillat
Copy link

@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

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
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

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 .
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.

2 participants