mirror of https://github.com/mpv-player/mpv
vo_wlshm: support big endian systems
The video was otherwise blue, and that’s not how it should be. :)
This commit is contained in:
parent
8121d958ec
commit
f8a9654873
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
#include <libswscale/swscale.h>
|
#include <libswscale/swscale.h>
|
||||||
|
|
||||||
|
#include "osdep/endian.h"
|
||||||
#include "sub/osd.h"
|
#include "sub/osd.h"
|
||||||
#include "video/fmt-conversion.h"
|
#include "video/fmt-conversion.h"
|
||||||
#include "video/mp_image.h"
|
#include "video/mp_image.h"
|
||||||
|
@ -184,7 +185,7 @@ static int resize(struct vo *vo)
|
||||||
vo->dheight = height;
|
vo->dheight = height;
|
||||||
vo_get_src_dst_rects(vo, &p->src, &p->dst, &p->osd);
|
vo_get_src_dst_rects(vo, &p->src, &p->dst, &p->osd);
|
||||||
p->sws->dst = (struct mp_image_params) {
|
p->sws->dst = (struct mp_image_params) {
|
||||||
.imgfmt = IMGFMT_BGR0,
|
.imgfmt = MP_SELECT_LE_BE(IMGFMT_BGR0, IMGFMT_0RGB),
|
||||||
.w = width,
|
.w = width,
|
||||||
.h = height,
|
.h = height,
|
||||||
.p_w = 1,
|
.p_w = 1,
|
||||||
|
|
Loading…
Reference in New Issue