}
tonal /= 1333136.0f;
- f_out->spread = av_clip(lrintf(tonal), 0, 3);
+ f_out->spread = av_clip_uintp2(lrintf(tonal), 2);
rate = ((float)s->avctx->bit_rate) + frame_bits*frame_size*16;
rate *= s->lambda;
ret = AVERROR(ENOMEM);
goto fail;
}
- ff_generate_window_func(s->window[i], 2*len, WFUNC_SINE, &tmp);
+ generate_window_func(s->window[i], 2*len, WFUNC_SINE, &tmp);
if ((ret = ff_mdct15_init(&s->mdct[i], 0, i + 3, 68 << (CELT_BLOCK_NB - 1 - i))))
goto fail;
}