summaryrefslogtreecommitdiff
path: root/test/basic/test_11.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/basic/test_11.c')
-rw-r--r--test/basic/test_11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/basic/test_11.c b/test/basic/test_11.c
index 99c8785..143d084 100644
--- a/test/basic/test_11.c
+++ b/test/basic/test_11.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);