X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=fecdec_filter.c;h=a720a7a76e13498ef1b0699985968325db10e6ec;hb=27c08870ba172782f6406045007b6ff32a4f7329;hp=13d4f7b22f6a46da75ef4b629275d603fc5f39d1;hpb=e5de57de1b8bf1df96c152fc92f5a49f75d6d96c;p=paraslash.git diff --git a/fecdec_filter.c b/fecdec_filter.c index 13d4f7b2..a720a7a7 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -225,8 +225,8 @@ static int add_slice(char *buf, struct fecdec_group *fg) } if (fg->num_slices == 0) { fg->num_slices = fg->h.slices_per_group; - fg->idx = para_malloc(fg->num_slices * sizeof(int)); - fg->data = para_calloc(fg->num_slices * sizeof(unsigned char *)); + fg->idx = arr_alloc(fg->num_slices, sizeof(int)); + fg->data = zalloc(fg->num_slices * sizeof(unsigned char *)); } r = fg->num_received_slices; /* Check if we already have this slice. */ @@ -236,7 +236,7 @@ static int add_slice(char *buf, struct fecdec_group *fg) return 0; } fg->idx[r] = slice_num; - fg->data[r] = para_malloc(fg->h.slice_bytes); + fg->data[r] = alloc(fg->h.slice_bytes); memcpy(fg->data[r], buf, fg->h.slice_bytes); fg->num_received_slices++; return 1; @@ -471,7 +471,7 @@ out: static void fecdec_open(struct filter_node *fn) { struct private_fecdec_data *pfd; - pfd = para_calloc(sizeof(*pfd)); + pfd = zalloc(sizeof(*pfd)); fn->private_data = pfd; fn->min_iqs = FEC_HEADER_SIZE; }