summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_format.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-04 04:54:51 +0100
committerDudemanguy <random342@airmail.cc>2024-01-22 14:54:55 +0000
commit0ac7a40dac2411cf9be429f611b8966560bb3f0c (patch)
tree7d65768a9dfc21b7080ba4518996dc4d588397cd /video/filter/vf_format.c
parent66e451f4e6e0d0b259eddfd3673f1aa5ff127726 (diff)
downloadmpv-0ac7a40dac2411cf9be429f611b8966560bb3f0c.tar.bz2
mpv-0ac7a40dac2411cf9be429f611b8966560bb3f0c.tar.xz
csputils: replace mp_alpha_type with pl_alpha_mode
Diffstat (limited to 'video/filter/vf_format.c')
-rw-r--r--video/filter/vf_format.c4
1 files changed, 2 insertions, 2 deletions
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)},