mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
hwcontext_vulkan: fix inverted condition when exporting images to drm_prime
Calling vkGetImageSubresourceLayout is only legal for linear and drm images.
This commit is contained in:
parent
acfef378b7
commit
7c080dc190
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user