diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2021-02-04 19:11:30 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2021-02-04 21:13:09 +0200 |
commit | f8a9654873c192a3a89c61b275f7e53c47a6e9a3 (patch) | |
tree | 15013ca287b2f501da531fdcd744f4831596d481 /video/out/vo_wlshm.c | |
parent | 8121d958ec2bfa4287790e3fd1ad73ed9296c2f3 (diff) | |
download | mpv-f8a9654873c192a3a89c61b275f7e53c47a6e9a3.tar.bz2 mpv-f8a9654873c192a3a89c61b275f7e53c47a6e9a3.tar.xz |
vo_wlshm: support big endian systems
The video was otherwise blue, and that’s not how it should be. :)
Diffstat (limited to 'video/out/vo_wlshm.c')
-rw-r--r-- | video/out/vo_wlshm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo_wlshm.c b/video/out/vo_wlshm.c index 8319475f72..a71f9507fc 100644 --- a/video/out/vo_wlshm.c +++ b/video/out/vo_wlshm.c @@ -23,6 +23,7 @@ #include <libswscale/swscale.h> +#include "osdep/endian.h" #include "sub/osd.h" #include "video/fmt-conversion.h" #include "video/mp_image.h" @@ -184,7 +185,7 @@ static int resize(struct vo *vo) vo->dheight = height; vo_get_src_dst_rects(vo, &p->src, &p->dst, &p->osd); p->sws->dst = (struct mp_image_params) { - .imgfmt = IMGFMT_BGR0, + .imgfmt = MP_SELECT_LE_BE(IMGFMT_BGR0, IMGFMT_0RGB), .w = width, .h = height, .p_w = 1, |