Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
b334bfc3
Commit
b334bfc3
authored
May 16, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
May 16, 2014
Browse files
Merge "Removing redundant decoder_init flag."
parents
9dc9f178
0fd7fc13
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/vp9_dx_iface.c
View file @
b334bfc3
...
...
@@ -32,7 +32,6 @@ struct vpx_codec_alg_priv {
vpx_codec_priv_t
base
;
vpx_codec_dec_cfg_t
cfg
;
vp9_stream_info_t
si
;
int
decoder_init
;
struct
VP9Decoder
*
pbi
;
int
postproc_cfg_set
;
vp8_postproc_cfg_t
postproc_cfg
;
...
...
@@ -265,12 +264,10 @@ static vpx_codec_err_t decode_one(vpx_codec_alg_priv_t *ctx,
}
// Initialize the decoder instance on the first frame
if
(
!
ctx
->
decoder_init
)
{
if
(
ctx
->
pbi
==
NULL
)
{
init_decoder
(
ctx
);
if
(
ctx
->
pbi
==
NULL
)
return
VPX_CODEC_ERROR
;
ctx
->
decoder_init
=
1
;
}
// Set these even if already initialized. The caller may have changed the
...
...
Write
Preview
Supports
Markdown
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