vo_wlshm: support big endian systems

The video was otherwise blue, and that’s not how it should be. :)
This commit is contained in:
Emmanuel Gil Peyrot 2021-02-04 19:11:30 +01:00 committed by Jan Ekström
parent 8121d958ec
commit f8a9654873
1 changed files with 2 additions and 1 deletions

View File

@ -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,