summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-01-17 15:13:23 +0100
committerwm4 <wm4@nowhere>2020-01-17 15:13:23 +0100
commit044996e1123b17b8f16e7c8995de185944257be5 (patch)
treeb2f9a093291cba45baae07b5b95cc7b0ce4de53e
parenta50060884547ae63198dd427fc5f1a2d3766013c (diff)
downloadmpv-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.
-rw-r--r--filters/f_hwtransfer.c3
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}