summaryrefslogtreecommitdiffstats
path: root/video/mp_image.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-30 18:01:29 +0200
committerwm4 <wm4@nowhere>2017-06-30 18:01:29 +0200
commit1ad036a2ef068928640eeda7352e5e70379e2119 (patch)
tree1844cee1f4021c727b8fb2207548f74bbba29382 /video/mp_image.c
parent6eb0bbe312c8422f3180b530126e1dfebb47295e (diff)
downloadmpv-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.c4
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;