aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext_vaapi.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-08-02 17:07:41 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-08-02 17:07:41 +0200
commit5aede051202150a1904c0f07a5c7901f402395a5 (patch)
treeab80ae14414583610a0ac9ce0f7ebfbb9d7c1aa4 /libavutil/hwcontext_vaapi.c
parent39211cb9aab3bfa5f9491e5874a4b9957a3c0956 (diff)
downloadffmpeg-5aede051202150a1904c0f07a5c7901f402395a5.tar.gz
lavu/hwcontext_vaapi: Fix compilation if VA_FOURCC_ABGR is not defined.
Fixes ticket #5484.
Diffstat (limited to 'libavutil/hwcontext_vaapi.c')
-rw-r--r--libavutil/hwcontext_vaapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 3c1493be9a..92fa23538b 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -115,8 +115,10 @@ static 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),
};