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
577910b4
Commit
577910b4
authored
Mar 21, 2011
by
John Koleszar
Committed by
Code Review
Mar 21, 2011
Browse files
Merge "vpx_codec_dec_init: check that the iface is a decoder"
parents
73065b67
2fced87e
Changes
1
Hide whitespace changes
Inline
Side-by-side
vpx/src/vpx_decoder.c
View file @
577910b4
...
...
@@ -36,6 +36,8 @@ vpx_codec_err_t vpx_codec_dec_init_ver(vpx_codec_ctx_t *ctx,
res
=
VPX_CODEC_INCAPABLE
;
else
if
((
flags
&
VPX_CODEC_USE_POSTPROC
)
&&
!
(
iface
->
caps
&
VPX_CODEC_CAP_POSTPROC
))
res
=
VPX_CODEC_INCAPABLE
;
else
if
(
!
(
iface
->
caps
&
VPX_CODEC_CAP_DECODER
))
res
=
VPX_CODEC_INCAPABLE
;
else
{
memset
(
ctx
,
0
,
sizeof
(
*
ctx
));
...
...
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