summaryrefslogtreecommitdiff
path: root/src/gen7_mfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen7_mfc.c')
-rw-r--r--src/gen7_mfc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gen7_mfc.c b/src/gen7_mfc.c
index 78b10965..2c17779d 100644
--- a/src/gen7_mfc.c
+++ b/src/gen7_mfc.c
@@ -1130,6 +1130,9 @@ gen7_mfc_context_init(VADriverContextP ctx, struct intel_encoder_context *encode
{
struct gen6_mfc_context *mfc_context = calloc(1, sizeof(struct gen6_mfc_context));
+ if (!mfc_context)
+ return False;
+
mfc_context->gpe_context.surface_state_binding_table.length = (SURFACE_STATE_PADDED_SIZE + sizeof(unsigned int)) * MAX_MEDIA_SURFACES_GEN6;
mfc_context->gpe_context.idrt.max_entries = MAX_GPE_KERNELS;