diff options
author | Lim Siew Hoon <siew.hoon.lim@intel.com> | 2015-12-10 16:07:47 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-12-14 01:19:15 +0800 |
commit | a7803c0642a8f2923ce3c51a0a717688fe2c5459 (patch) | |
tree | a5d214ba92e6a8ab21a7d98d994ad936607192c4 /src | |
parent | e8197f18c517fa7d122a8392fb5f5af84fe1f440 (diff) |
Add assert checking for allocated gen9_vp9_surface
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gen9_mfd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gen9_mfd.c b/src/gen9_mfd.c index d9ca3be..2d8ed7d 100644 --- a/src/gen9_mfd.c +++ b/src/gen9_mfd.c @@ -1277,6 +1277,7 @@ gen9_hcpd_init_vp9_surface(VADriverContextP ctx, if (!gen9_vp9_surface) { gen9_vp9_surface = calloc(sizeof(GenVP9Surface), 1); + assert(gen9_vp9_surface); gen9_vp9_surface->base.frame_store_id = -1; obj_surface->private_data = gen9_vp9_surface; } |