From e6ab7fe5825c380386d2423d3b2c23df16699361 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Thu, 14 Aug 2025 17:15:30 +0200 Subject: [PATCH] avfilter/vf_scale: set correct alpha mode after format change While vf_scale cannot directly convert between premultiplied and straight alpha, the effective tagging can still change as a result of a change in the pixel format (i.e. adding or removing an alpha channel). --- libavfilter/vf_scale.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index a376fbe0ca..33212a47c0 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -837,6 +837,7 @@ scale: out->height = outlink->h; out->color_range = outlink->color_range; out->colorspace = outlink->colorspace; + out->alpha_mode = outlink->alpha_mode; if (scale->out_chroma_loc != AVCHROMA_LOC_UNSPECIFIED) out->chroma_location = scale->out_chroma_loc; if (scale->out_primaries != -1)