X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdsputil.c;h=ce83096431551228749d85020c2409516b3bf774;hb=c6e2f0831c604c5cf7c2c17e018fb9c7cb620117;hp=88fe5e0d4145d9c35be52f70031f4dbd8ab9b902;hpb=8b505fc6894b99afc217f57f404a0705f75a464c;p=ffmpeg diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 88fe5e0d414..ce830964315 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -41,6 +41,9 @@ void ff_spatial_dwt(int *buffer, int width, int height, int stride, int type, in /* vorbis.c */ void vorbis_inverse_coupling(float *mag, float *ang, int blocksize); +/* flacenc.c */ +void ff_flac_compute_autocorr(const int32_t *data, int len, int lag, double *autoc); + uint8_t ff_cropTbl[256 + 2 * MAX_NEG_CROP] = {0, }; uint32_t ff_squareTbl[512] = {0, }; @@ -4131,6 +4134,9 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx) #ifdef CONFIG_VORBIS_DECODER c->vorbis_inverse_coupling = vorbis_inverse_coupling; +#endif +#ifdef CONFIG_FLAC_ENCODER + c->flac_compute_autocorr = ff_flac_compute_autocorr; #endif c->vector_fmul = vector_fmul_c; c->vector_fmul_reverse = vector_fmul_reverse_c;