Commit ace119d2f5 for ffmpeg
commit ace119d2f534617f80d0655b1f9a663f795f8112
Author: Niklas Haas <git@haasn.dev>
Date: Wed Oct 21 19:08:48 2026 +0200
swscale/vulkan/ops: use ff_sws_pixel_type_is_int() to pick the view representation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Niklas Haas <git@haasn.dev>
diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c
index 91ab24aef7..230af3e257 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -754,7 +754,8 @@ static int get_view_fmts(VkFormat view_fmts[AV_NUM_DATA_POINTERS],
const VkFormat word_fmt = packed_word_fmt(op);
enum FFVkShaderRepFormat rep = FF_VK_REP_NATIVE;
if (op)
- rep = op->rw.type == SWS_PIXEL_F32 ? FF_VK_REP_FLOAT : FF_VK_REP_UINT;
+ rep = ff_sws_pixel_type_is_int(op->rw.type) ? FF_VK_REP_UINT
+ : FF_VK_REP_FLOAT;
if (!vk_fmts)
return AVERROR(ENOTSUP);