|
|
|
@ -262,14 +262,14 @@ static void at1_subband_synthesis(AT1Ctx *q, AT1SUCtx* su, float *pOut) |
|
|
|
|
float iqmf_temp[512 + 46]; |
|
|
|
|
|
|
|
|
|
/* combine low and middle bands */ |
|
|
|
|
atrac_iqmf(q->bands[0], q->bands[1], 128, temp, su->fst_qmf_delay, iqmf_temp); |
|
|
|
|
ff_atrac_iqmf(q->bands[0], q->bands[1], 128, temp, su->fst_qmf_delay, iqmf_temp); |
|
|
|
|
|
|
|
|
|
/* delay the signal of the high band by 23 samples */ |
|
|
|
|
memcpy( su->last_qmf_delay, &su->last_qmf_delay[256], sizeof(float) * 23); |
|
|
|
|
memcpy(&su->last_qmf_delay[23], q->bands[2], sizeof(float) * 256); |
|
|
|
|
|
|
|
|
|
/* combine (low + middle) and high bands */ |
|
|
|
|
atrac_iqmf(temp, su->last_qmf_delay, 256, pOut, su->snd_qmf_delay, iqmf_temp); |
|
|
|
|
ff_atrac_iqmf(temp, su->last_qmf_delay, 256, pOut, su->snd_qmf_delay, iqmf_temp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -378,7 +378,7 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx) |
|
|
|
|
|
|
|
|
|
ff_init_ff_sine_windows(5); |
|
|
|
|
|
|
|
|
|
atrac_generate_tables(); |
|
|
|
|
ff_atrac_generate_tables(); |
|
|
|
|
|
|
|
|
|
dsputil_init(&q->dsp, avctx); |
|
|
|
|
ff_fmt_convert_init(&q->fmt_conv, avctx); |
|
|
|
|