aac: Drop pointless cast
authorDiego Biurrun <diego@biurrun.de>
Sun, 15 Mar 2015 14:56:52 +0000 (15:56 +0100)
committerDiego Biurrun <diego@biurrun.de>
Sun, 13 Nov 2016 17:44:00 +0000 (18:44 +0100)
libavcodec/aacpsy.c

index 6cfae6b..272be9f 100644 (file)
@@ -300,7 +300,7 @@ static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
     ctx->model_priv_data = av_mallocz(sizeof(AacPsyContext));
     if (!ctx->model_priv_data)
         return AVERROR(ENOMEM);
-    pctx = (AacPsyContext*) ctx->model_priv_data;
+    pctx = ctx->model_priv_data;
 
     pctx->chan_bitrate = chan_bitrate;
     pctx->frame_bits   = chan_bitrate * AAC_BLOCK_SIZE_LONG / ctx->avctx->sample_rate;