X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=amp_filter.c;h=be69ad67a8d78d419f3147546785130e42c7b80b;hb=HEAD;hp=9369e4bcbeb1f9c9eec251f5136a34d9e223f8bb;hpb=5967ac5353739c3ff571dd12d4c6814fa8493ad8;p=paraslash.git diff --git a/amp_filter.c b/amp_filter.c index 9369e4bc..be69ad67 100644 --- a/amp_filter.c +++ b/amp_filter.c @@ -29,7 +29,7 @@ static void amp_close(struct filter_node *fn) static void amp_open(struct filter_node *fn) { - struct private_amp_data *pad = para_calloc(sizeof(*pad)); + struct private_amp_data *pad = zalloc(sizeof(*pad)); unsigned given = FILTER_CMD_OPT_GIVEN(AMP, AMP, fn->lpr); uint32_t amp_arg = FILTER_CMD_OPT_UINT32_VAL(AMP, AMP, fn->lpr); @@ -67,14 +67,14 @@ next_buffer: in_bytes = btr_next_buffer(btrn, (char **)&in); len = in_bytes / 2; if (len == 0) { /* eof and in_bytes == 1 */ - ret = -E_AMP_EOF; + ret = -E_EOF; goto err; } if (inplace) out = in; else - out = para_malloc(len * 2); + out = alloc(len * 2); for (i = 0; i < len; i++) { int x = (in[i] * factor) >> 6;