From 1ad036a2ef068928640eeda7352e5e70379e2119 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 30 Jun 2017 18:01:29 +0200 Subject: video: get rid of swapped packed YUV Another legacy annoyance. The only place where packed YUV is still important is slightly older Apple hardware or drivers, which require it for efficient hardware decoding. --- video/mp_image.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'video/mp_image.c') diff --git a/video/mp_image.c b/video/mp_image.c index 7974588330..c950af12ad 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -461,9 +461,7 @@ void mp_image_clear(struct mp_image *img, int x0, int y0, int x1, int y1) uint32_t plane_clear[MP_MAX_PLANES] = {0}; - if (area.imgfmt == IMGFMT_YUYV) { - plane_clear[0] = av_le2ne16(0x8000); - } else if (area.imgfmt == IMGFMT_UYVY) { + if (area.imgfmt == IMGFMT_UYVY) { plane_clear[0] = av_le2ne16(0x0080); } else if (area.fmt.flags & MP_IMGFLAG_YUV_NV) { plane_clear[1] = 0x8080; -- cgit v1.2.3