projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ce3901
)
Only touch ctx->priv if vp8_mmap_alloc succeeded.
author
Fredrik Söderquist
<fs@opera.com>
Mon, 7 Jun 2010 16:20:47 +0000
(18:20 +0200)
committer
John Koleszar
<jkoleszar@google.com>
Fri, 23 Jul 2010 23:13:34 +0000
(19:13 -0400)
vp8/vp8_dx_iface.c
patch
|
blob
|
history
diff --git
a/vp8/vp8_dx_iface.c
b/vp8/vp8_dx_iface.c
index
e0e1103
..
36a0b39
100644
(file)
--- a/
vp8/vp8_dx_iface.c
+++ b/
vp8/vp8_dx_iface.c
@@
-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;