diff options
author | wm4 <wm4@nowhere> | 2020-01-17 15:13:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-01-17 15:13:23 +0100 |
commit | 044996e1123b17b8f16e7c8995de185944257be5 (patch) | |
tree | b2f9a093291cba45baae07b5b95cc7b0ce4de53e /filters | |
parent | a50060884547ae63198dd427fc5f1a2d3766013c (diff) | |
download | mpv-044996e1123b17b8f16e7c8995de185944257be5.tar.bz2 mpv-044996e1123b17b8f16e7c8995de185944257be5.tar.xz |
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.
Diffstat (limited to 'filters')
-rw-r--r-- | filters/f_hwtransfer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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} |