Commit 3d824e2d25 for ffmpeg
commit 3d824e2d2567cc94b7e3dccadb6270986165359e
Author: Niklas Haas <git@haasn.dev>
Date: Wed Oct 21 02:45:03 2026 +0200
swscale/vulkan/ops: remove the limit on the number of ops
It only existed for the per-op constant IDs, which are no longer stored.
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 32c3556a4a..ab176e6517 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -76,7 +76,6 @@ AVBufferRef *ff_sws_vk_device_ref(SwsContext *sws)
return s ? s->vkctx.device_ref : NULL;
}
-#define MAX_OPS 32
#define MAX_DITHER_BUFS 4
#define MAX_FILT_BUFS 4
#define MAX_DATA_BUFS (MAX_DITHER_BUFS + MAX_FILT_BUFS*4)
@@ -955,9 +954,6 @@ static int emit_shader(SwsContext *sws, VulkanPriv *p, FFVulkanOpsCtx *s,
id->ops = ops;
id->bitexact = !!(sws->flags & SWS_BITEXACT);
- if (ops->num_ops > MAX_OPS)
- return AVERROR(ENOTSUP);
-
id->interlaced = ops->src.interlaced || ops->dst.interlaced;
p->interlaced = id->interlaced;