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

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

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