]> granicus.if.org Git - libvpx/commitdiff
vp9/10 decoder_init: add missing alloc cast
authorJames Zern <jzern@google.com>
Thu, 10 Sep 2015 05:53:28 +0000 (22:53 -0700)
committerJames Zern <jzern@google.com>
Thu, 10 Sep 2015 06:15:59 +0000 (23:15 -0700)
Change-Id: I1ba4400d67095f3a360fb7d97ee8d118d4f741fe

vp10/vp10_dx_iface.c
vp9/vp9_dx_iface.c

index c6e18743e0b494445f29fe60e2275b5ec39875b8..5795a4db2d719b9f20e263ef6ef831077b799e7e 100644 (file)
@@ -88,7 +88,8 @@ static vpx_codec_err_t decoder_init(vpx_codec_ctx_t *ctx,
   (void)data;
 
   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)
       return VPX_CODEC_MEM_ERROR;
 
index 8119df85ffd33f84d908ee89262c36f924beccea..eb2371e2c0e79ed397654277c04b0f6ee54c8e92 100644 (file)
@@ -88,7 +88,8 @@ static vpx_codec_err_t decoder_init(vpx_codec_ctx_t *ctx,
   (void)data;
 
   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)
       return VPX_CODEC_MEM_ERROR;