From 0ac7a40dac2411cf9be429f611b8966560bb3f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 4 Nov 2023 04:54:51 +0100 Subject: csputils: replace mp_alpha_type with pl_alpha_mode --- video/filter/vf_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/filter/vf_format.c') diff --git a/video/filter/vf_format.c b/video/filter/vf_format.c index 4a14fc9102..6a3e9fd390 100644 --- a/video/filter/vf_format.c +++ b/video/filter/vf_format.c @@ -92,7 +92,7 @@ static void set_params(struct vf_format_opts *p, struct mp_image_params *out, if (p->rotate >= 0) out->rotate = p->rotate; if (p->alpha) - out->alpha = p->alpha; + out->repr.alpha = p->alpha; if (p->w > 0 && set_size) out->w = p->w; @@ -213,7 +213,7 @@ static const m_option_t vf_opts_fields[] = { {"chroma-location", OPT_CHOICE_C(chroma_location, mp_chroma_names)}, {"stereo-in", OPT_CHOICE_C(stereo_in, mp_stereo3d_names)}, {"rotate", OPT_INT(rotate), M_RANGE(-1, 359)}, - {"alpha", OPT_CHOICE_C(alpha, mp_alpha_names)}, + {"alpha", OPT_CHOICE_C(alpha, pl_alpha_names)}, {"w", OPT_INT(w)}, {"h", OPT_INT(h)}, {"dw", OPT_INT(dw)}, -- cgit v1.2.3