summaryrefslogtreecommitdiffstats
path: root/video/img_format.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-08 17:22:42 +0100
committerwm4 <wm4@nowhere>2019-11-08 21:22:49 +0100
commitbcfabf40a4819f82b37c83d0fb969a25454aa828 (patch)
tree39b5e42a2c9d6ae432d778da00a1501ca2ec3083 /video/img_format.c
parent1edb3d061bd88e86cba05e9383d6decb4a13950b (diff)
downloadmpv-bcfabf40a4819f82b37c83d0fb969a25454aa828.tar.bz2
mpv-bcfabf40a4819f82b37c83d0fb969a25454aa828.tar.xz
img_format: remove some unneeded alpha flag handling
Don't know what this was for, but the result doesn't change.
Diffstat (limited to 'video/img_format.c')
-rw-r--r--video/img_format.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/video/img_format.c b/video/img_format.c
index 4028bf0e0b..57da094d39 100644
--- a/video/img_format.c
+++ b/video/img_format.c
@@ -212,9 +212,6 @@ struct mp_imgfmt_desc mp_imgfmt_get_desc(int mpfmt)
if (pd->flags & AV_PIX_FMT_FLAG_ALPHA)
desc.flags |= MP_IMGFLAG_ALPHA;
- if (mpfmt >= IMGFMT_RGB0_START && mpfmt <= IMGFMT_RGB0_END)
- desc.flags &= ~MP_IMGFLAG_ALPHA;
-
if (!(pd->flags & AV_PIX_FMT_FLAG_HWACCEL) &&
!(pd->flags & AV_PIX_FMT_FLAG_BITSTREAM))
{