From 2add72d9bcec97855691b90e62b8f3f1634e3544 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fredrik=20S=C3=B6derquist?= Date: Mon, 7 Jun 2010 18:24:41 +0200 Subject: [PATCH] Don't dereference ctx->priv if it hasn't been setup correctly. --- vp8/vp8_dx_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c index 36a0b39..7e4fc0b 100644 --- a/vp8/vp8_dx_iface.c +++ b/vp8/vp8_dx_iface.c @@ -528,7 +528,7 @@ static vpx_codec_err_t vp8_xma_set_mmap(vpx_codec_ctx_t *ctx, done = 1; - if (ctx->priv->alg_priv) + if (!res && ctx->priv->alg_priv) { for (i = 0; i < NELEMENTS(vp8_mem_req_segs); i++) { -- 2.7.4