summaryrefslogtreecommitdiffstats
path: root/video/zimg.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/zimg.c
parent66e451f4e6e0d0b259eddfd3673f1aa5ff127726 (diff)
downloadmpv-0ac7a40dac2411cf9be429f611b8966560bb3f0c.tar.bz2
mpv-0ac7a40dac2411cf9be429f611b8966560bb3f0c.tar.xz
csputils: replace mp_alpha_type with pl_alpha_mode
Diffstat (limited to 'video/zimg.c')
-rw-r--r--video/zimg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/zimg.c b/video/zimg.c
index f744fe2c4b..4ea32af83a 100644
--- a/video/zimg.c
+++ b/video/zimg.c
@@ -375,7 +375,7 @@ static bool setup_format(zimg_image_format *zfmt, struct mp_zimg_repack *r,
r->z_planes[3] = n; // alpha, always plane 4 in zimg
#if HAVE_ZIMG_ALPHA
- zfmt->alpha = fmt.alpha == MP_ALPHA_PREMUL
+ zfmt->alpha = fmt.repr.alpha == PL_ALPHA_PREMULTIPLIED
? ZIMG_ALPHA_PREMULTIPLIED : ZIMG_ALPHA_STRAIGHT;
#else
return false;