]> granicus.if.org Git - libvpx/commitdiff
Removing sz member from vpx_codec_priv.
authorDmitry Kovalev <dkovalev@google.com>
Thu, 4 Sep 2014 21:47:42 +0000 (14:47 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Thu, 4 Sep 2014 21:47:42 +0000 (14:47 -0700)
Change-Id: I811526a9ee9f237604f72abe7fc677e39e0f457f

vp8/vp8_cx_iface.c
vp8/vp8_dx_iface.c
vp9/vp9_cx_iface.c
vp9/vp9_dx_iface.c
vpx/internal/vpx_codec_internal.h

index fc8c4078f59460d093c719032863c5c3d98e6cf9..b1b079cb26058f4b3f21edce611dc216bcf11ed0 100644 (file)
@@ -635,7 +635,6 @@ static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx,
         }
 
         ctx->priv = (vpx_codec_priv_t *)priv;
-        ctx->priv->sz = sizeof(*priv);
         ctx->priv->init_flags = ctx->init_flags;
 
         if (ctx->config.enc)
index 6d9ecc0c898df3cc78203410e779b8292eeae4d8..3ab8ed0ad69b3c87e5c909fba3c3d7765d1b322a 100644 (file)
@@ -84,7 +84,6 @@ static void vp8_init_ctx(vpx_codec_ctx_t *ctx)
         (vpx_codec_alg_priv_t *)vpx_calloc(1, sizeof(*priv));
 
     ctx->priv = (vpx_codec_priv_t *)priv;
-    ctx->priv->sz = sizeof(*priv);
     ctx->priv->init_flags = ctx->init_flags;
 
     priv->si.sz = sizeof(priv->si);
index 26db30cd8b5e90c3c096218093dbc7ffed8affa0..7007e3f7d383146692d34382d36fbce96e89ede5 100644 (file)
@@ -670,7 +670,6 @@ static vpx_codec_err_t encoder_init(vpx_codec_ctx_t *ctx,
       return VPX_CODEC_MEM_ERROR;
 
     ctx->priv = (vpx_codec_priv_t *)priv;
-    ctx->priv->sz = sizeof(*priv);
     ctx->priv->init_flags = ctx->init_flags;
     ctx->priv->enc.total_encoders = 1;
 
index b0fb2825337ae716d3e56502f6a13ffe44019c1f..393c66ebdad2b39a68597fe773451acf9ffa84d0 100644 (file)
@@ -63,7 +63,6 @@ static vpx_codec_err_t decoder_init(vpx_codec_ctx_t *ctx,
       return VPX_CODEC_MEM_ERROR;
 
     ctx->priv = (vpx_codec_priv_t *)priv;
-    ctx->priv->sz = sizeof(*priv);
     ctx->priv->init_flags = ctx->init_flags;
 
     priv->si.sz = sizeof(priv->si);
index 02f20791a4ab138e8b80d530d82778e646da158e..cbfffd0af2ab5b1fe46f86440b3fe9ab64afbc66 100644 (file)
@@ -335,7 +335,6 @@ typedef struct vpx_codec_priv_cb_pair {
  * and the pointer cast to the proper type.
  */
 struct vpx_codec_priv {
-  unsigned int                    sz;
   const char                     *err_detail;
   vpx_codec_flags_t               init_flags;
   struct {