- FF_ALLOCZ_OR_GOTO(avc, c, sizeof(FFIIRFilterCoeffs),
- init_fail);
- FF_ALLOC_OR_GOTO(avc, c->cx, sizeof(c->cx[0]) * ((order >> 1) + 1),
- init_fail);
- FF_ALLOC_OR_GOTO(avc, c->cy, sizeof(c->cy[0]) * order,
- init_fail);
+ if (!(c = av_mallocz(sizeof(*c))) ||
+ !(c->cx = av_malloc (sizeof(c->cx[0]) * ((order >> 1) + 1))) ||
+ !(c->cy = av_malloc (sizeof(c->cy[0]) * order)))
+ goto free;