1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

hwcontext_vulkan: take disable_multiplane into account when checking for formats

This commit is contained in:
Lynne 2024-11-24 17:08:29 +01:00
parent cf0961a527
commit d485420237
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -2040,7 +2040,7 @@ static int vulkan_frames_get_constraints(AVHWDeviceContext *ctx,
count += vkfmt_from_pixfmt2(ctx, vk_formats_list[i].pixfmt,
p->use_linear_images ? VK_IMAGE_TILING_LINEAR :
VK_IMAGE_TILING_OPTIMAL,
NULL, NULL, NULL, NULL, 0, 1) >= 0;
NULL, NULL, NULL, NULL, p->disable_multiplane, 1) >= 0;
}
constraints->valid_sw_formats = av_malloc_array(count + 1,
@ -2053,7 +2053,7 @@ static int vulkan_frames_get_constraints(AVHWDeviceContext *ctx,
if (vkfmt_from_pixfmt2(ctx, vk_formats_list[i].pixfmt,
p->use_linear_images ? VK_IMAGE_TILING_LINEAR :
VK_IMAGE_TILING_OPTIMAL,
NULL, NULL, NULL, NULL, 0, 1) >= 0) {
NULL, NULL, NULL, NULL, p->disable_multiplane, 1) >= 0) {
constraints->valid_sw_formats[count++] = vk_formats_list[i].pixfmt;
}
}