[FFmpeg-cvslog] lavu/hwcontext_vaapi: Fix compilation if VA_FOURCC_ABGR is not defined.

Carl Eugen Hoyos git at videolan.org
Wed Aug 3 00:25:56 EEST 2016


ffmpeg | branch: release/3.1 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Aug  2 17:07:41 2016 +0200| [9a345b235fbd6dd48030b192b2292b1806f8d600] | committer: Carl Eugen Hoyos

lavu/hwcontext_vaapi: Fix compilation if VA_FOURCC_ABGR is not defined.

Fixes ticket #5484.
(cherry picked from commit 5aede051202150a1904c0f07a5c7901f402395a5)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a345b235fbd6dd48030b192b2292b1806f8d600
---

 libavutil/hwcontext_vaapi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 3c1493b..92fa235 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),
 };



More information about the ffmpeg-cvslog mailing list