projects
/
profile
/
ivi
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cbd962
)
vpx_codec_dec_init: check that the iface is a decoder
author
John Koleszar
<jkoleszar@google.com>
Mon, 21 Mar 2011 15:46:15 +0000
(11:46 -0400)
committer
John Koleszar
<jkoleszar@google.com>
Mon, 21 Mar 2011 16:12:14 +0000
(12:12 -0400)
Make sure the given interface is actually a decoder interface before
initializing it.
Change-Id: Ie48d737f2956cc2f0891666de5ea87251e96bc49
vpx/src/vpx_decoder.c
patch
|
blob
|
history
diff --git
a/vpx/src/vpx_decoder.c
b/vpx/src/vpx_decoder.c
index
fe6ea75
..
4ffb00d
100644
(file)
--- a/
vpx/src/vpx_decoder.c
+++ b/
vpx/src/vpx_decoder.c
@@
-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));