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

Check libavcodec version for AV1 codec definition #1489

Merged
merged 4 commits into from
Nov 29, 2023

Conversation

david-winder-kaltura
Copy link
Collaborator

@david-winder-kaltura david-winder-kaltura commented Nov 22, 2023

After merging #1461, compilation is fail with old ffmpeg. the AV1 codec is only supporting from libformat 60.16.100 (ffmpeg 6) - FFmpeg/FFmpeg@7a5e9a6

@@ -55,7 +55,9 @@ static codec_id_mapping_t codec_mappings[] = {
{ VOD_CODEC_ID_HEVC, AV_CODEC_ID_H265, "h265" },
{ VOD_CODEC_ID_VP8, AV_CODEC_ID_VP8, "vp8" },
{ VOD_CODEC_ID_VP9, AV_CODEC_ID_VP9, "vp9" },
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(60, 16, 100)
Copy link
Contributor

Choose a reason for hiding this comment

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

need to check libavcodec version, not libavformat, this module doesn't use libavformat...
I think it should be LIBAVCODEC_VERSION >= AV_VERSION_INT(57, 25, 0)
the codec id constant was added here - FFmpeg/FFmpeg@d42809f

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated to libavcodec with 57,89,100

@david-winder-kaltura david-winder-kaltura changed the title Check libformat version for AV1 codec definition Check libavcodec version for AV1 codec definition Nov 27, 2023
@david-winder-kaltura david-winder-kaltura merged commit 5701878 into master Nov 29, 2023
8 checks passed
@david-winder-kaltura david-winder-kaltura deleted the check-libformat-version-av1 branch November 29, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants