From 044996e1123b17b8f16e7c8995de185944257be5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 Jan 2020 15:13:23 +0100 Subject: f_hwtransfer: extend vaapi whitelist with some working formats Notably, BGR0, which is the only additional format listed as supported by the texture mapper, results in broken colors. This is most likely not a mpv issue, so the whitelist fulfils its purpose. --- filters/f_hwtransfer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filters/f_hwtransfer.c b/filters/f_hwtransfer.c index 93e60f2eb8..e46a6070e9 100644 --- a/filters/f_hwtransfer.c +++ b/filters/f_hwtransfer.c @@ -51,7 +51,8 @@ struct ffmpeg_and_other_bugs { static const struct ffmpeg_and_other_bugs shitlist[] = { { .imgfmt = IMGFMT_VAAPI, - .whitelist_formats = (const int[]){IMGFMT_NV12, IMGFMT_P010, 0}, + .whitelist_formats = (const int[]){IMGFMT_NV12, IMGFMT_P010, IMGFMT_BGRA, + IMGFMT_ABGR, IMGFMT_RGB0, 0}, .force_same_upload_fmt = true, }, {0} -- cgit v1.2.3