[FFmpeg-cvslog] hwcontext_vulkan: take disable_multiplane into account when checking for formats

Lynne git at videolan.org
Tue Nov 26 15:16:02 EET 2024


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sun Nov 24 17:08:29 2024 +0100| [d48542023725c5ad319bfbfa169954a42de4500f] | committer: Lynne

hwcontext_vulkan: take disable_multiplane into account when checking for formats

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

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

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index ce4a7502ba..e379642cd3 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -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;
         }
     }



More information about the ffmpeg-cvslog mailing list