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.
This commit is contained in:
wm4 2020-01-17 15:13:23 +01:00
parent a500608845
commit 044996e112
1 changed files with 2 additions and 1 deletions

View File

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