summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-12-01 11:58:22 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2009-12-01 11:58:22 +0800
commit0f6ed093cb064f57293bd06a24938a3a481f821c (patch)
tree11ad73cfd068ba759a5b2b320440911a357d7c65
parentb15ab87c3c641410324fc32e5105da3386394243 (diff)
fix test build issue
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--test/basic/Makefile.am2
-rw-r--r--test/decode/mpeg2vldemo.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/test/basic/Makefile.am b/test/basic/Makefile.am
index 78eabcb..24de161 100644
--- a/test/basic/Makefile.am
+++ b/test/basic/Makefile.am
@@ -23,6 +23,8 @@
bin_PROGRAMS = test_01 test_02 test_03 test_04 test_05 test_06 \
test_07 test_08 test_09 test_10 test_11
+AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA
+
TEST_LIBS = $(top_srcdir)/src/$(libvabackendlib)
test_01_LDADD = $(TEST_LIBS)
diff --git a/test/decode/mpeg2vldemo.c b/test/decode/mpeg2vldemo.c
index 945b69d..d62f1c2 100644
--- a/test/decode/mpeg2vldemo.c
+++ b/test/decode/mpeg2vldemo.c
@@ -28,7 +28,7 @@
* "mpeg2-I.m2v" and VA parameters are hardcoded into mpeg2vldemo.c,
* See mpeg2-I.jif to know how those VA parameters come from
*
- * gcc -o mpeg2vldemo mpeg2vldemo.c -lva -lva-x11
+ * gcc -o mpeg2vldemo mpeg2vldemo.c -lva -lva-x11 -I/usr/include/va
* ./mpeg2vldemo : only do decode
* ./mpeg2vldemo <any parameter >: decode+display
*
@@ -47,8 +47,8 @@
#include <assert.h>
-#include <va/va.h>
-#include <va/va_x11.h>
+#include "va.h"
+#include "va_x11.h"
#define CHECK_VASTATUS(va_status,func) \
if (va_status != VA_STATUS_SUCCESS) { \