summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2020-05-10 21:30:15 +0100
committerLynne <dev@lynne.ee>2020-05-10 23:20:49 +0100
commit7c080dc190ac1d85de1ca873347d0ac8855985e0 (patch)
treed64d6d3aed024559dff8fb37fce882fbb2995efb /libavutil/hwcontext_vulkan.c
parentacfef378b7f68ce26c0c8fe9cd8da64613a19d7f (diff)
downloadffmpeg-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.c2
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);