Commit eafcf918 authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by John Koleszar

Only touch ctx->priv if vp8_mmap_alloc succeeded.

parent 0ce39012
......@@ -223,11 +223,12 @@ static vpx_codec_err_t vp8_init(vpx_codec_ctx_t *ctx)
res = vp8_mmap_alloc(&mmap);
if (!res)
{
vp8_init_ctx(ctx, &mmap);
ctx->priv->alg_priv->defer_alloc = 1;
/*post processing level initialized to do nothing */
ctx->priv->alg_priv->defer_alloc = 1;
/*post processing level initialized to do nothing */
}
}
return res;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment