Don't dereference ctx->priv if it hasn't been setup correctly.

This commit is contained in:
Fredrik Söderquist 2010-06-07 18:24:41 +02:00 committed by John Koleszar
parent eafcf918a0
commit 2add72d9bc

View File

@ -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++)
{