[FFmpeg-devel] [PATCH 05/11] chromaber_vulkan: fix use of texture()
Lynne
dev at lynne.ee
Mon Feb 17 20:31:15 EET 2025
While the rest of texture() uses were fine, this one was not.
---
libavfilter/vf_chromaber_vulkan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_chromaber_vulkan.c b/libavfilter/vf_chromaber_vulkan.c
index 65b53afd64..f8cfab1480 100644
--- a/libavfilter/vf_chromaber_vulkan.c
+++ b/libavfilter/vf_chromaber_vulkan.c
@@ -142,7 +142,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
} else {
GLSLC(1, ivec2 size = imageSize(output_img[0]); );
GLSLC(1, vec2 npos = vec2(pos)/vec2(size); );
- GLSLC(1, vec4 res = texture(input_img[0], npos); );
+ GLSLC(1, vec4 res = texture(input_img[0], npos + 0.5f); );
GLSLC(1, imageStore(output_img[0], pos, res); );
for (int i = 1; i < planes; i++) {
GLSLC(0, );
--
2.47.2
More information about the ffmpeg-devel
mailing list