vp9...parms_get_to_decoder: remove unneeded func
authorJames Zern <jzern@google.com>
Thu, 10 Sep 2015 06:38:53 +0000 (23:38 -0700)
committerJames Zern <jzern@google.com>
Thu, 10 Sep 2015 07:21:59 +0000 (00:21 -0700)
removes a redundant cast in the process

Change-Id: Ie3727a0938c0093f70f25a875c2c58671938d45c

test/vp9_encoder_parms_get_to_decoder.cc

index 80ab374..e422f7c 100644 (file)
 
 #include "vp9/vp9_dx_iface.c"
 
-static vpx_codec_alg_priv_t *get_alg_priv(vpx_codec_ctx_t *ctx) {
-  return (vpx_codec_alg_priv_t *)ctx->priv;
-}
-
 namespace {
 
 const int kCpuUsed = 2;
@@ -100,7 +96,7 @@ class VpxEncoderParmsGetToDecoder
                                   libvpx_test::Decoder *decoder) {
     vpx_codec_ctx_t* vp9_decoder = decoder->GetDecoder();
     vpx_codec_alg_priv_t* priv =
-        (vpx_codec_alg_priv_t*) get_alg_priv(vp9_decoder);
+        reinterpret_cast<vpx_codec_alg_priv_t *>(vp9_decoder->priv);
     FrameWorkerData *const worker_data =
         reinterpret_cast<FrameWorkerData *>(priv->frame_workers[0].data1);
     VP9_COMMON *const common = &worker_data->pbi->common;