]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - opusdec_filter.c
string: Introduce arr_alloc().
[paraslash.git] / opusdec_filter.c
index 942cce37fc5de28676cb2b099b397c39b3f74da0..d30de0b68aeab658ffccd32238467c38f6767991 100644 (file)
@@ -193,7 +193,7 @@ static int decode_packet(struct opusdec_context *ctx, ogg_packet *op,
        /* don't care for anything except opus eos */
        if (op->e_o_s && ctx->os.serialno == ctx->opus_serialno)
                ctx->eos = true;
-       output = alloc(sizeof(short) * MAX_FRAME_SIZE * ctx->channels);
+       output = arr_alloc(sizeof(short) * ctx->channels, MAX_FRAME_SIZE);
        ret = opus_multistream_decode(ctx->st, (unsigned char *)op->packet,
                op->bytes, output, MAX_FRAME_SIZE, 0);
        if (ret < 0) {