diff options
author | wm4 <wm4@nowhere> | 2017-06-30 18:01:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-30 18:01:29 +0200 |
commit | 1ad036a2ef068928640eeda7352e5e70379e2119 (patch) | |
tree | 1844cee1f4021c727b8fb2207548f74bbba29382 /video/mp_image.c | |
parent | 6eb0bbe312c8422f3180b530126e1dfebb47295e (diff) | |
download | mpv-1ad036a2ef068928640eeda7352e5e70379e2119.tar.bz2 mpv-1ad036a2ef068928640eeda7352e5e70379e2119.tar.xz |
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.
Diffstat (limited to 'video/mp_image.c')
-rw-r--r-- | video/mp_image.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |