From f8a9654873c192a3a89c61b275f7e53c47a6e9a3 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 4 Feb 2021 19:11:30 +0100 Subject: vo_wlshm: support big endian systems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The video was otherwise blue, and that’s not how it should be. :) --- video/out/vo_wlshm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/vo_wlshm.c') 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 +#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, -- cgit v1.2.3