From: Michael Niedermayer Date: Sun, 30 Jun 2013 09:30:07 +0000 (+0200) Subject: Merge commit '502ab21af0ca68f76d6112722c46d2f35c004053' X-Git-Tag: android-x86-4.4-r1~2655 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=78b547963362cc9827d92dc0808534b757ab05d4;p=android-x86%2Fexternal-ffmpeg.git Merge commit '502ab21af0ca68f76d6112722c46d2f35c004053' * commit '502ab21af0ca68f76d6112722c46d2f35c004053': x86: lpc: simd av_update_lls The versions are bumped due to changes in lls.h which is used across libraries affecting intra library ABI (This version bump also covers changes to lls.h in the immedeatly previous commits) Merged-by: Michael Niedermayer --- 78b547963362cc9827d92dc0808534b757ab05d4 diff --cc libavcodec/lpc.c index e2c0aacc43,144bbede44..559a87d161 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@@ -201,11 -200,10 +201,13 @@@ int ff_lpc_calc_coefs(LPCContext *s ref[i] = fabs(lpc[i][i]); } else if (lpc_type == FF_LPC_TYPE_CHOLESKY) { LLSModel m[2]; - double var[MAX_LPC_ORDER+1], av_uninit(weight); + LOCAL_ALIGNED(32, double, var, [FFALIGN(MAX_LPC_ORDER+1,4)]); + double av_uninit(weight); + memset(var, 0, FFALIGN(MAX_LPC_ORDER+1,4)*sizeof(*var)); + if(lpc_passes <= 0) + lpc_passes = 2; + for(pass=0; passupdate_lls = ff_update_lls_sse2; + } + if (EXTERNAL_AVX(cpu_flags)) { + m->update_lls = ff_update_lls_avx; + } + }