[FFmpeg-cvslog] vulkan_decode: fix typo when setting AV1 capabilities

Lynne git at videolan.org
Tue May 30 00:28:31 EEST 2023


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Mon May 29 23:16:33 2023 +0200| [9f9534f5b643f7349396eb33599c4895d1faefa8] | committer: Lynne

vulkan_decode: fix typo when setting AV1 capabilities

All pNext chained structs in Vulkan are defined as void *, so it doesn't
help catch this.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f9534f5b643f7349396eb33599c4895d1faefa8
---

 libavcodec/vulkan_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c
index f79ca7f229..889c67a15f 100644
--- a/libavcodec/vulkan_decode.c
+++ b/libavcodec/vulkan_decode.c
@@ -671,7 +671,7 @@ static VkResult vulkan_setup_profile(AVCodecContext *avctx,
         h265_profile->sType = VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PROFILE_INFO_KHR;
         h265_profile->stdProfileIdc = cur_profile;
     } else if (avctx->codec_id == AV_CODEC_ID_AV1) {
-        dec_caps->pNext = &av1_caps;
+        dec_caps->pNext = av1_caps;
         usage->pNext = av1_profile;
         av1_profile->sType = VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PROFILE_INFO_MESA;
         av1_profile->stdProfileIdc = cur_profile;



More information about the ffmpeg-cvslog mailing list