[FFmpeg-cvslog] hwcontext_vulkan: fix imported image bitmask

Lynne git at videolan.org
Wed Mar 18 00:52:09 EET 2020


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Tue Mar 17 13:08:06 2020 +0000| [ecc3dceff44b8612c80014d45a514df882883940] | committer: Lynne

hwcontext_vulkan: fix imported image bitmask

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ecc3dceff44b8612c80014d45a514df882883940
---

 libavutil/hwcontext_vulkan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index f3aa1f0d8c..ed88979d0d 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -1758,7 +1758,8 @@ static int vulkan_map_from_drm_frame_desc(AVHWFramesContext *hwfc, AVVkFrame **f
             .extent.depth  = 1,
             .mipLevels     = 1,
             .arrayLayers   = 1,
-            .flags         = VK_IMAGE_CREATE_ALIAS_BIT | signal_p ? VK_IMAGE_CREATE_DISJOINT_BIT : 0x0,
+            .flags         = VK_IMAGE_CREATE_ALIAS_BIT |
+                             (signal_p ? VK_IMAGE_CREATE_DISJOINT_BIT : 0x0),
             .tiling        = f->tiling,
             .initialLayout = VK_IMAGE_LAYOUT_UNDEFINED, /* specs say so */
             .usage         = DEFAULT_USAGE_FLAGS,



More information about the ffmpeg-cvslog mailing list