diff options
author | Elviss Strazdins <elviss@elviss.lv> | 2017-05-24 14:33:08 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2017-05-29 13:50:03 +0200 |
commit | 2017ffc18fe4d33b954dd8a50b086f310f17a329 (patch) | |
tree | a06bb12490aa56bb05052fe88521e39724bb2ba9 | |
parent | 6a7e928555d081ff86c867867ebce74fdc4c87d6 (diff) | |
download | ffmpeg-2017ffc18fe4d33b954dd8a50b086f310f17a329.tar.gz |
vaapi: Add ABGR map only if VA_FOURCC_ABGR is defined
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavutil/hwcontext_vaapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 23bce76605..2260518ca6 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -107,8 +107,10 @@ static const struct { //MAP(BGRX, RGB32, BGR0), MAP(RGBA, RGB32, RGBA), //MAP(RGBX, RGB32, RGB0), +#ifdef VA_FOURCC_ABGR MAP(ABGR, RGB32, ABGR), //MAP(XBGR, RGB32, 0BGR), +#endif MAP(ARGB, RGB32, ARGB), //MAP(XRGB, RGB32, 0RGB), }; |