- ff_rdft_init(&s->rdft, 7, DFT_R2C);
- ff_rdft_init(&s->irdft, 7, IDFT_C2R);
- ff_dct_init(&s->dct, 6, DCT_I);
- ff_dct_init(&s->dst, 6, DST_I);
+ if ((ret = ff_rdft_init(&s->rdft, 7, DFT_R2C)) < 0 ||
+ (ret = ff_rdft_init(&s->irdft, 7, IDFT_C2R)) < 0 ||
+ (ret = ff_dct_init (&s->dct, 6, DCT_I)) < 0 ||
+ (ret = ff_dct_init (&s->dst, 6, DST_I)) < 0)
+ return ret;