From bcfabf40a4819f82b37c83d0fb969a25454aa828 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 Nov 2019 17:22:42 +0100 Subject: img_format: remove some unneeded alpha flag handling Don't know what this was for, but the result doesn't change. --- video/img_format.c | 3 --- video/img_format.h | 3 --- 2 files changed, 6 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)) { diff --git a/video/img_format.h b/video/img_format.h index 5d4cebd892..2df16ef095 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -179,9 +179,6 @@ enum mp_imgfmt { IMGFMT_0BGR, IMGFMT_RGB0, - IMGFMT_RGB0_START = IMGFMT_0RGB, - IMGFMT_RGB0_END = IMGFMT_RGB0, - // Like IMGFMT_RGBA, but 2 bytes per component. IMGFMT_RGBA64, -- cgit v1.2.3