diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2014-05-15 14:59:15 -0700 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2014-05-15 14:59:15 -0700 |
commit | 0fd7fc1370c6fd4c5321c1ce5fbfba48a4cc58c0 (patch) | |
tree | d28de60aa307657c322ffc3a2a16e3d2bd207564 | |
parent | 1bec51d666e73e274ea557a00fec66d17ea2782f (diff) | |
download | libvpx-0fd7fc1370c6fd4c5321c1ce5fbfba48a4cc58c0.tar libvpx-0fd7fc1370c6fd4c5321c1ce5fbfba48a4cc58c0.tar.gz libvpx-0fd7fc1370c6fd4c5321c1ce5fbfba48a4cc58c0.tar.bz2 libvpx-0fd7fc1370c6fd4c5321c1ce5fbfba48a4cc58c0.zip |
Removing redundant decoder_init flag.
Change-Id: Ieee7a7e3c40d6bcc9fa4df8d10ee9620995aa691
-rw-r--r-- | vp9/vp9_dx_iface.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vp9/vp9_dx_iface.c b/vp9/vp9_dx_iface.c index 619825020..c6929046b 100644 --- a/vp9/vp9_dx_iface.c +++ b/vp9/vp9_dx_iface.c @@ -32,7 +32,6 @@ struct vpx_codec_alg_priv { vpx_codec_priv_t base; vpx_codec_dec_cfg_t cfg; vp9_stream_info_t si; - int decoder_init; struct VP9Decoder *pbi; int postproc_cfg_set; vp8_postproc_cfg_t postproc_cfg; @@ -285,12 +284,10 @@ static vpx_codec_err_t decode_one(vpx_codec_alg_priv_t *ctx, } // Initialize the decoder instance on the first frame - if (!ctx->decoder_init) { + if (ctx->pbi == NULL) { init_decoder(ctx); if (ctx->pbi == NULL) return VPX_CODEC_ERROR; - - ctx->decoder_init = 1; } // Set these even if already initialized. The caller may have changed the |