diff options
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; |