diff options
Diffstat (limited to 'test/basic/test_09.c')
-rw-r--r-- | test/basic/test_09.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/basic/test_09.c b/test/basic/test_09.c index 0decc06..897d6fc 100644 --- a/test/basic/test_09.c +++ b/test/basic/test_09.c @@ -44,7 +44,9 @@ void test() ASSERT(entrypoints); VAConfigID *configs = malloc(max_entrypoints * num_profiles * sizeof(VAConfigID)); + ASSERT(configs); VAContextID *contexts = malloc(max_entrypoints * num_profiles * sizeof(VAContextID)); + ASSERT(contexts); for(i = 0; i < num_profiles; i++) { @@ -67,6 +69,7 @@ void test() int total_surfaces = config_count * surface_count; VASurfaceID *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); |