summaryrefslogtreecommitdiff
path: root/test/basic/test_10.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/basic/test_10.c')
-rw-r--r--test/basic/test_10.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/basic/test_10.c b/test/basic/test_10.c
index 9c7c566..e79debc 100644
--- a/test/basic/test_10.c
+++ b/test/basic/test_10.c
@@ -45,6 +45,7 @@ void pre()
total_surfaces = surface_count;
surfaces = malloc(total_surfaces * sizeof(VASurfaceID));
+ assert(surfaces);
// TODO: Don't assume VA_RT_FORMAT_YUV420 is supported / needed for each config
va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces, NULL, 0);