Commit 91998e63 authored by Dmitry Kovalev's avatar Dmitry Kovalev
Browse files

Removing sz member from vpx_codec_priv.

Change-Id: I811526a9ee9f237604f72abe7fc677e39e0f457f
parent 27db51c6
...@@ -635,7 +635,6 @@ static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx, ...@@ -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 = (vpx_codec_priv_t *)priv;
ctx->priv->sz = sizeof(*priv);
ctx->priv->init_flags = ctx->init_flags; ctx->priv->init_flags = ctx->init_flags;
if (ctx->config.enc) if (ctx->config.enc)
......
...@@ -84,7 +84,6 @@ static void vp8_init_ctx(vpx_codec_ctx_t *ctx) ...@@ -84,7 +84,6 @@ static void vp8_init_ctx(vpx_codec_ctx_t *ctx)
(vpx_codec_alg_priv_t *)vpx_calloc(1, sizeof(*priv)); (vpx_codec_alg_priv_t *)vpx_calloc(1, sizeof(*priv));
ctx->priv = (vpx_codec_priv_t *)priv; ctx->priv = (vpx_codec_priv_t *)priv;
ctx->priv->sz = sizeof(*priv);
ctx->priv->init_flags = ctx->init_flags; ctx->priv->init_flags = ctx->init_flags;
priv->si.sz = sizeof(priv->si); priv->si.sz = sizeof(priv->si);
......
...@@ -670,7 +670,6 @@ static vpx_codec_err_t encoder_init(vpx_codec_ctx_t *ctx, ...@@ -670,7 +670,6 @@ static vpx_codec_err_t encoder_init(vpx_codec_ctx_t *ctx,
return VPX_CODEC_MEM_ERROR; return VPX_CODEC_MEM_ERROR;
ctx->priv = (vpx_codec_priv_t *)priv; ctx->priv = (vpx_codec_priv_t *)priv;
ctx->priv->sz = sizeof(*priv);
ctx->priv->init_flags = ctx->init_flags; ctx->priv->init_flags = ctx->init_flags;
ctx->priv->enc.total_encoders = 1; ctx->priv->enc.total_encoders = 1;
......
...@@ -63,7 +63,6 @@ static vpx_codec_err_t decoder_init(vpx_codec_ctx_t *ctx, ...@@ -63,7 +63,6 @@ static vpx_codec_err_t decoder_init(vpx_codec_ctx_t *ctx,
return VPX_CODEC_MEM_ERROR; return VPX_CODEC_MEM_ERROR;
ctx->priv = (vpx_codec_priv_t *)priv; ctx->priv = (vpx_codec_priv_t *)priv;
ctx->priv->sz = sizeof(*priv);
ctx->priv->init_flags = ctx->init_flags; ctx->priv->init_flags = ctx->init_flags;
priv->si.sz = sizeof(priv->si); priv->si.sz = sizeof(priv->si);
......
...@@ -335,7 +335,6 @@ typedef struct vpx_codec_priv_cb_pair { ...@@ -335,7 +335,6 @@ typedef struct vpx_codec_priv_cb_pair {
* and the pointer cast to the proper type. * and the pointer cast to the proper type.
*/ */
struct vpx_codec_priv { struct vpx_codec_priv {
unsigned int sz;
const char *err_detail; const char *err_detail;
vpx_codec_flags_t init_flags; vpx_codec_flags_t init_flags;
struct { struct {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment