aacdec: Remove pointless variable p.
authorAndre Noll <maan@systemlinux.org>
Thu, 17 Apr 2014 23:34:04 +0000 (23:34 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000 (11:54 +0100)
aacdec_filter.c

index 7e6f5b2..c829984 100644 (file)
@@ -97,7 +97,7 @@ static int aacdec_post_select(__a_unused struct sched *s, void *context)
        struct btr_node *btrn = fn->btrn;
        struct private_aacdec_data *padd = fn->private_data;
        int i, ret;
-       char *p, *inbuf, *outbuffer;
+       char *inbuf, *outbuffer;
        char *btr_buf;
        size_t len, consumed, loaded;
 
@@ -130,11 +130,10 @@ next_buffer:
        }
        if (consumed >= len)
                goto success;
-       p = inbuf + consumed;
        //PARA_CRIT_LOG("consumed: %zu (%zu + %zu), have: %zu\n", padd->consumed_total + consumed,
        //      padd->consumed_total, consumed, len - consumed);
        outbuffer = NeAACDecDecode(padd->handle, &padd->frame_info,
-               (unsigned char *)p, len - consumed);
+               (unsigned char *)inbuf + consumed, len - consumed);
        if (padd->frame_info.error) {
                int err = padd->frame_info.error;
                ret = -E_AAC_DECODE;