[FFmpeg-cvslog] vaapi: Add ABGR map only if VA_FOURCC_ABGR is defined

Elviss Strazdins git at videolan.org
Tue Oct 31 18:36:57 EET 2017


ffmpeg | branch: master | Elviss Strazdins <elviss at elviss.lv> | Wed May 24 14:33:08 2017 +0200| [2017ffc18fe4d33b954dd8a50b086f310f17a329] | committer: Luca Barbato

vaapi: Add ABGR map only if VA_FOURCC_ABGR is defined

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

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

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

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),
 };



More information about the ffmpeg-cvslog mailing list