All pNext chained structs in Vulkan are defined as void *, so it doesn't help catch this.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -671,7 +671,7 @@ static VkResult vulkan_setup_profile(AVCodecContext *avctx, · 670 unmodified lines | ||
| 671 | 671 | h265_profile->sType = VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PROFILE_INFO_KHR; |
| 672 | 672 | h265_profile->stdProfileIdc = cur_profile; |
| 673 | 673 | } else if (avctx->codec_id == AV_CODEC_ID_AV1) { |
| 674 | − dec_caps->pNext = &av1_caps; | |
| 674 | + dec_caps->pNext = av1_caps; | |
| 675 | 675 | usage->pNext = av1_profile; |
| 676 | 676 | av1_profile->sType = VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PROFILE_INFO_MESA; |
| 677 | 677 | av1_profile->stdProfileIdc = cur_profile; |