commit | eafcf918a0a20b0a6763a826de8cf821961e75a0 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Mon Jun 07 18:20:47 2010 +0200 |
committer | John Koleszar <jkoleszar@google.com> | Fri Jul 23 19:13:34 2010 -0400 |
tree | 7d68d2f82c2be95fe8ab273bf1a14f12acf08d2d | |
parent | 0ce39012823b522c611db87f0810c540124e6e9d [diff] |
Only touch ctx->priv if vp8_mmap_alloc succeeded.
diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c index e0e1103..36a0b39 100644 --- a/vp8/vp8_dx_iface.c +++ b/vp8/vp8_dx_iface.c
@@ -223,11 +223,12 @@ 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;