diff options
author | Niklas Haas <git@haasn.dev> | 2022-02-24 15:49:30 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-02-24 18:36:28 +0100 |
commit | e6c18641bd52375bc3429ec2771f4fdfede5dc1e (patch) | |
tree | c2017bbb4807248dbe29a71ceb7617a11b0b4517 /video/out/drm_common.c | |
parent | 57f42cee84aa5b48eb2db32e8b429796a3d7fb11 (diff) | |
download | mpv-e6c18641bd52375bc3429ec2771f4fdfede5dc1e.tar.bz2 mpv-e6c18641bd52375bc3429ec2771f4fdfede5dc1e.tar.xz |
mp_image: fix mp_image_plane_w/h
These helpers, for some reason, decided to round the returned values up
to multiples of the nearest plane alignment. This logic makes no sense
to me, and completely breaks any sort of oddly-sized mp_image.
This logic was introduced, presumably in error and without real
justification, as part of a major refactor commit (caee8748), As far as
I can tell, removing it again doesn't regress anything.
Fixes several serious bugs including buffer underflows and GPU crashes
in vo_gpu and vo_gpu_next.
Diffstat (limited to 'video/out/drm_common.c')
0 files changed, 0 insertions, 0 deletions