 +VAStatus
 +vaReleaseBufferHandle(VADisplay dpy, VABufferID buf_id);
 +
- /*
- Render (Decode) Pictures
-
+ /** VA buffer information */
+ typedef struct {
+     /** Buffer handle */
 diff --git a/third_party/libva/va/va_backend.h b/third_party/libva/va/va_backend.h
-index bd82849..5e8dc42 100644
+index 150f8ef..844774f 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
+@@ -392,6 +392,19 @@ struct VADriverVTable
+                 VASurfaceID surface
          );
-+
+ 
 +        VAStatus
 +        (*vaAcquireBufferHandle)(
 +            VADriverContextP    ctx,

+            VADriverContextP    ctx,
+            VABufferID          buf_id          /* in */
+        );
 };

 struct VADriverContext
--
1.9.1

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

