shithub: libvpx

Download patch

ref: fc4ddc0d0038bbe21478947bac08d4bb62699a82
parent: 67774db59f22218f409c213e3899dc707e2b775d
author: James Zern <jzern@google.com>
date: Wed Sep 9 19:38:53 EDT 2015

vp9...parms_get_to_decoder: remove unneeded func

removes a redundant cast in the process

Change-Id: Ie3727a0938c0093f70f25a875c2c58671938d45c

--- a/test/vp9_encoder_parms_get_to_decoder.cc
+++ b/test/vp9_encoder_parms_get_to_decoder.cc
@@ -18,10 +18,6 @@
 
 #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 @@
                                   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;