diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 5c31a87dcf..ef4db63c85 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -313,8 +313,8 @@ typedef struct DSPContext { /* assume len is a multiple of 4, and arrays are 16-byte aligned */ void (*vorbis_inverse_coupling)(float *mag, float *ang, int blocksize); - void (*vector_fmul)(float *dst, const float *src, int len); /* assume len is a multiple of 8, and arrays are 16-byte aligned */ + void (*vector_fmul)(float *dst, const float *src, int len); void (*vector_fmul_reverse)(float *dst, const float *src0, const float *src1, int len); /* assume len is a multiple of 8, and src arrays are 16-byte aligned */ void (*vector_fmul_add_add)(float *dst, const float *src0, const float *src1, const float *src2, int src3, int len, int step); diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 195f0908c6..8ffa90b078 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -2773,33 +2773,39 @@ static void vorbis_inverse_coupling_sse(float *mag, float *ang, int blocksize) } static void vector_fmul_3dnow(float *dst, const float *src, int len){ - long i; - len >>= 1; - for(i=0; i>= 2; - for(i=0; ivector_fmul_add_add = vector_fmul_add_add_sse; } if(mm_flags & MM_3DNOW) - c->vector_fmul_add_add = vector_fmul_add_add_3dnow; // faster than sse2 + c->vector_fmul_add_add = vector_fmul_add_add_3dnow; // faster than sse } #ifdef CONFIG_ENCODERS diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c index 1cf2f93382..3bf22bca11 100644 --- a/libavcodec/vorbis.c +++ b/libavcodec/vorbis.c @@ -762,7 +762,7 @@ static void create_map( vorbis_context * vc, uint_fast8_t floor_number ) for (blockflag=0;blockflag<2;++blockflag) { - n=(blockflag ? vc->blocksize[1] : vc->blocksize[0]) / 2; + n=vc->blocksize[blockflag]/2; floors[floor_number].data.t0.map[blockflag]= av_malloc((n+1) * sizeof(int_fast32_t)); // n+sentinel