Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
eafcf918
Commit
eafcf918
authored
Jun 07, 2010
by
Fredrik Söderquist
Committed by
John Koleszar
Jul 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only touch ctx->priv if vp8_mmap_alloc succeeded.
parent
0ce39012
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vp8/vp8_dx_iface.c
vp8/vp8_dx_iface.c
+4
-3
No files found.
vp8/vp8_dx_iface.c
View file @
eafcf918
...
@@ -223,11 +223,12 @@ static vpx_codec_err_t vp8_init(vpx_codec_ctx_t *ctx)
...
@@ -223,11 +223,12 @@ static vpx_codec_err_t vp8_init(vpx_codec_ctx_t *ctx)
res
=
vp8_mmap_alloc
(
&
mmap
);
res
=
vp8_mmap_alloc
(
&
mmap
);
if
(
!
res
)
if
(
!
res
)
{
vp8_init_ctx
(
ctx
,
&
mmap
);
vp8_init_ctx
(
ctx
,
&
mmap
);
ctx
->
priv
->
alg_priv
->
defer_alloc
=
1
;
ctx
->
priv
->
alg_priv
->
defer_alloc
=
1
;
/*post processing level initialized to do nothing */
/*post processing level initialized to do nothing */
}
}
}
return
res
;
return
res
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment