summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-17 18:19:28 +0100
committerwm4 <wm4@nowhere>2014-03-17 18:19:28 +0100
commit6aa2d1f12073c65a30a0b3a8c6d7191165ca0286 (patch)
tree07a38d309447612f53f7d4204af8e5cc310f59eb
parent8fbf0300d8248400e1c21784c3abe931f553383b (diff)
downloadmpv-6aa2d1f12073c65a30a0b3a8c6d7191165ca0286.tar.bz2
mpv-6aa2d1f12073c65a30a0b3a8c6d7191165ca0286.tar.xz
img_format: AV_PIX_FMT_FLAG_ALPHA is always available
We no more support ancient libavutil versions.
-rw-r--r--video/img_format.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/video/img_format.c b/video/img_format.c
index 1d0b7c4a72..e1636e1eb6 100644
--- a/video/img_format.c
+++ b/video/img_format.c
@@ -211,13 +211,8 @@ struct mp_imgfmt_desc mp_imgfmt_get_desc(int mpfmt)
desc.flags |= MP_IMGFLAG_RGB;
}
-#ifdef AV_PIX_FMT_FLAG_ALPHA
if (pd->flags & AV_PIX_FMT_FLAG_ALPHA)
desc.flags |= MP_IMGFLAG_ALPHA;
-#else
- if (desc.num_planes > 3)
- desc.flags |= MP_IMGFLAG_ALPHA;
-#endif
if (mpfmt >= IMGFMT_RGB0_START && mpfmt <= IMGFMT_RGB0_END)
desc.flags &= ~MP_IMGFLAG_ALPHA;