vp9/10 decoder_init: add missing alloc cast
Change-Id: I1ba4400d67095f3a360fb7d97ee8d118d4f741fe
This commit is contained in:
parent
a2e61adc96
commit
a124bc7a81
@ -88,7 +88,8 @@ static vpx_codec_err_t decoder_init(vpx_codec_ctx_t *ctx,
|
|||||||
(void)data;
|
(void)data;
|
||||||
|
|
||||||
if (!ctx->priv) {
|
if (!ctx->priv) {
|
||||||
vpx_codec_alg_priv_t *const priv = vpx_calloc(1, sizeof(*priv));
|
vpx_codec_alg_priv_t *const priv =
|
||||||
|
(vpx_codec_alg_priv_t *)vpx_calloc(1, sizeof(*priv));
|
||||||
if (priv == NULL)
|
if (priv == NULL)
|
||||||
return VPX_CODEC_MEM_ERROR;
|
return VPX_CODEC_MEM_ERROR;
|
||||||
|
|
||||||
|
@ -88,7 +88,8 @@ static vpx_codec_err_t decoder_init(vpx_codec_ctx_t *ctx,
|
|||||||
(void)data;
|
(void)data;
|
||||||
|
|
||||||
if (!ctx->priv) {
|
if (!ctx->priv) {
|
||||||
vpx_codec_alg_priv_t *const priv = vpx_calloc(1, sizeof(*priv));
|
vpx_codec_alg_priv_t *const priv =
|
||||||
|
(vpx_codec_alg_priv_t *)vpx_calloc(1, sizeof(*priv));
|
||||||
if (priv == NULL)
|
if (priv == NULL)
|
||||||
return VPX_CODEC_MEM_ERROR;
|
return VPX_CODEC_MEM_ERROR;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user