[FFmpeg-devel] [PATCH 2/2] vulkan_decode: convert max level from vulkan to av for comparisons

Lynne dev at lynne.ee
Wed Sep 6 07:21:36 EEST 2023


The spec finally clarified the meaning of the field to:

> maxLevelIdc is a StdVideoH264LevelIdc value specifying the maximum H.264 level supported by the profile, where enum constant STD_VIDEO_H264_LEVEL_IDC_<major>_<minor> identifies H.264 level <major>.<minor> as defined in section A.3 of the ITU-T H.264 Specification.1

Annoyingly, we have to convert it to an IDC value to compare it.
Mesa commit:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24649
Only mesa currently uses the IDC value, all other drivers use the enum.

Patch attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-vulkan_decode-convert-max-level-from-vulkan-to-av-fo.patch
Type: text/x-diff
Size: 4022 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230906/0e5ec7e3/attachment.patch>


More information about the ffmpeg-devel mailing list