 
 VA-API version: >= 0.36 (libva 1.4.0)
 ---
- third_party/libva/va/va.h         | 103 ++++++++++++++++++++++++++++++++++++++
+ third_party/libva/va/va.h         | 102 ++++++++++++++++++++++++++++++++++++++
  third_party/libva/va/va_backend.h |  13 +++++
- 2 files changed, 116 insertions(+)
+ 2 files changed, 115 insertions(+)
 
 diff --git a/third_party/libva/va/va.h b/third_party/libva/va/va.h
-index 845760c..a88ea32 100644
+index 9455023..a839dc2 100644
 --- a/third_party/libva/va/va.h
 +++ b/third_party/libva/va/va.h
-@@ -78,6 +78,7 @@
- #ifndef _VA_H_
- #define _VA_H_
-
-+#include <stddef.h>
- #include <stdint.h>
- #include <va/va_version.h>
-
-@@ -1851,6 +1852,108 @@ VAStatus vaDestroyBuffer (
+@@ -1852,6 +1852,108 @@ VAStatus vaDestroyBuffer (
      VABufferID buffer_id
  );
-
+ 
 +/** \brief VA buffer information */
 +typedef struct {
 +    /** \brief Buffer handle */

+VAStatus
+vaReleaseBufferHandle(VADisplay dpy, VABufferID buf_id);
+
 /*
 Render (Decode) Pictures

diff --git a/third_party/libva/va/va_backend.h b/third_party/libva/va/va_backend.h
index bd82849..5e8dc42 100644
--- a/third_party/libva/va/va_backend.h
+++ b/third_party/libva/va/va_backend.h
@@ -420,6 +420,19 @@ struct VADriverVTable
             VASurfaceAttrib    *attrib_list,
             unsigned int       *num_attribs
         );
+
+        VAStatus
+        (*vaAcquireBufferHandle)(
+            VADriverContextP    ctx,

From 8e2686c292afd905405fc0ecc7e5d9be542c6e81 Mon Sep 17 00:00:00 2001
From: jiajia qin <jiajia.qin@intel.com>
Date: Wed, 4 Mar 2015 03:43:19 -0800
Subject: [PATCH] Use vaAcquireBufferHandle APIs to instead of vaLockBuffer
 APIs

