diff options
author | Aaron Boxer <boxerab@protonmail.com> | 2022-07-28 13:19:14 -0400 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-08-01 23:11:42 +0200 |
commit | 24d10fc998a7b69c3254fef49d3ea9d79f82ebca (patch) | |
tree | 905c9a8b8553d5901fb0e35c7cadb178a519d253 | |
parent | 284fecc0bdd8152a35a35a387faf5d4675b8f0c8 (diff) | |
download | mpv-24d10fc998a7b69c3254fef49d3ea9d79f82ebca.tar.bz2 mpv-24d10fc998a7b69c3254fef49d3ea9d79f82ebca.tar.xz |
video: remove unnecessary code
plane_clear[p] is never NULL
-rw-r--r-- | video/mp_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index ffcc1c138e..a4bf76f485 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -676,7 +676,7 @@ void mp_image_clear(struct mp_image *img, int x0, int y0, int x1, int y1) int p_w = mp_image_plane_w(&area, p); for (int y = 0; y < p_h; y++) { void *ptr = area.planes[p] + (ptrdiff_t)area.stride[p] * y; - if (plane_size[p] && plane_clear[p]) { + if (plane_size[p]) { memset_pattern(ptr, p_w / misery, plane_clear[p], plane_size[p]); } else { memset(ptr, 0, mp_image_plane_bytes(&area, p, 0, area.w)); |