diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index e5b139132c..978d7e29d3 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -2590,7 +2590,7 @@ static void try_export_flags(AVHWFramesContext *hwfc, VkPhysicalDeviceImageFormatInfo2 pinfo = { .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2, .pNext = !exp ? NULL : &enext, - .format = av_vkfmt_from_pixfmt(hwfc->sw_format)[0], + .format = vk_find_format_entry(hwfc->sw_format)->vkf, .type = VK_IMAGE_TYPE_2D, .tiling = hwctx->tiling, .usage = hwctx->usage,