aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2025-08-11 15:54:35 +0200
committerNiklas Haas <ffmpeg@haasn.dev>2025-08-12 09:01:39 +0000
commitdee56511b051e8177164e04ed5b044d8e7d0dc1e (patch)
tree2e198a23e727fb3cf5d0edcaf8057bf73b555d42
parentbd59c6651bead05e32c6b993546b4ff7c32174dc (diff)
downloadffmpeg-dee56511b051e8177164e04ed5b044d8e7d0dc1e.tar.gz
avfilter/vf_scale_vulkan: use AVFilterContext for logging
-rw-r--r--libavfilter/vf_scale_vulkan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavfilter/vf_scale_vulkan.c b/libavfilter/vf_scale_vulkan.c
index 9d550c5180..c23cfe262f 100644
--- a/libavfilter/vf_scale_vulkan.c
+++ b/libavfilter/vf_scale_vulkan.c
@@ -122,9 +122,10 @@ static const char write_444[] = {
C(0, } )
};
-static int init_scale_shader(ScaleVulkanContext *s, FFVulkanShader *shd,
+static int init_scale_shader(AVFilterContext *ctx, FFVulkanShader *shd,
FFVulkanDescriptorSetBinding *desc, AVFrame *in)
{
+ ScaleVulkanContext *s = ctx->priv;
GLSLD( scale_bilinear );
if (s->vkctx.output_format != s->vkctx.input_format) {
@@ -179,7 +180,7 @@ static int init_scale_shader(ScaleVulkanContext *s, FFVulkanShader *shd,
lcoeffs = av_csp_luma_coeffs_from_avcsp(in->colorspace);
if (!lcoeffs) {
- av_log(s, AV_LOG_ERROR, "Unsupported colorspace\n");
+ av_log(ctx, AV_LOG_ERROR, "Unsupported colorspace\n");
return AVERROR(EINVAL);
}
@@ -305,7 +306,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
if (debayer)
err = init_debayer_shader(s, shd, desc, in);
else
- err = init_scale_shader(s, shd, desc, in);
+ err = init_scale_shader(ctx, shd, desc, in);
if (err < 0)
goto fail;