[Libva] [PATCH] Missing 'do' in "do ...while" in macro ALLOC_VDENC_BUFFER_RESOURCE

Lim Siew Hoon siew.hoon.lim at intel.com
Tue Jul 26 08:54:37 UTC 2016


Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
---
 src/gen9_vdenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gen9_vdenc.c b/src/gen9_vdenc.c
index 75268bb..e19def1 100644
--- a/src/gen9_vdenc.c
+++ b/src/gen9_vdenc.c
@@ -778,7 +778,7 @@ const int vdenc_hme_cost[8][52] = {
         OUT_BCS_BATCH(batch, attr);                             \
     } while (0)
 
-#define ALLOC_VDENC_BUFFER_RESOURCE(buffer, bfsize, des) {      \
+#define ALLOC_VDENC_BUFFER_RESOURCE(buffer, bfsize, des) do {   \
         buffer.type = I965_GPE_RESOURCE_BUFFER;                 \
         buffer.width = bfsize;                                  \
         buffer.height = 1;                                      \
-- 
2.1.0



More information about the Libva mailing list