diff options
author | Lynne <dev@lynne.ee> | 2020-05-10 21:30:15 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2020-05-10 23:20:49 +0100 |
commit | 7c080dc190ac1d85de1ca873347d0ac8855985e0 (patch) | |
tree | d64d6d3aed024559dff8fb37fce882fbb2995efb /libavutil/hwcontext_vulkan.c | |
parent | acfef378b7f68ce26c0c8fe9cd8da64613a19d7f (diff) | |
download | ffmpeg-7c080dc190ac1d85de1ca873347d0ac8855985e0.tar.gz |
hwcontext_vulkan: fix inverted condition when exporting images to drm_prime
Calling vkGetImageSubresourceLayout is only legal for linear and drm images.
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index b62d0a6c6c..085187c175 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -2327,7 +2327,7 @@ static int vulkan_map_to_drm(AVHWFramesContext *hwfc, AVFrame *dst, drm_desc->layers[i].planes[0].object_index = FFMIN(i, drm_desc->nb_objects - 1); - if (f->tiling != VK_IMAGE_TILING_OPTIMAL) + if (f->tiling == VK_IMAGE_TILING_OPTIMAL) continue; vkGetImageSubresourceLayout(hwctx->act_dev, f->img[i], &sub, &layout); |