1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

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).
This commit is contained in:
Niklas Haas
2025-08-14 17:15:30 +02:00
parent a3d518a57c
commit e6ab7fe582

View File

@@ -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)