]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - opusdec_filter.c
string: Rename para_malloc() -> alloc().
[paraslash.git] / opusdec_filter.c
index 10ed394d295072d909441fe211fbcdc695ff62d0..7878b422ad4bb65a584039be38d10bcfd67a36b0 100644 (file)
@@ -153,7 +153,7 @@ static void opusdec_add_output(short *pcm, int frames_available,
 
        if (tmp_skip > 0) {
                short *in = pcm + ctx->channels * tmp_skip;
-               short *out = para_malloc(bytes);
+               short *out = alloc(bytes);
                memcpy(out, in, bytes);
                free(pcm);
                pcm = out;
@@ -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 = para_malloc(sizeof(short) * MAX_FRAME_SIZE * ctx->channels);
+       output = alloc(sizeof(short) * MAX_FRAME_SIZE * ctx->channels);
        ret = opus_multistream_decode(ctx->st, (unsigned char *)op->packet,
                op->bytes, output, MAX_FRAME_SIZE, 0);
        if (ret < 0) {