| Index: source/libvpx/vp9/encoder/x86/vp9_dct_ssse3.c
|
| diff --git a/source/libvpx/vp9/encoder/x86/vp9_dct_ssse3.c b/source/libvpx/vp9/encoder/x86/vp9_dct_ssse3.c
|
| index a1a2bda80f700ed400d4cfd07493d6596abc633f..bdc75e993717d418b4c265edee2532f4acb2a3dd 100644
|
| --- a/source/libvpx/vp9/encoder/x86/vp9_dct_ssse3.c
|
| +++ b/source/libvpx/vp9/encoder/x86/vp9_dct_ssse3.c
|
| @@ -8,6 +8,7 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| +#include <assert.h>
|
| #if defined(_MSC_VER) && _MSC_VER <= 1500
|
| // Need to include math.h before calling tmmintrin.h/intrin.h
|
| // in certain versions of MSVS.
|
| @@ -374,6 +375,7 @@ void vp9_fdct8x8_quant_ssse3(const int16_t *input, int stride,
|
| __m128i qcoeff0, qcoeff1;
|
| __m128i qtmp0, qtmp1;
|
|
|
| + assert(index < (int)(sizeof(in) / sizeof(in[0])) - 1);
|
| coeff0 = *in[index];
|
| coeff1 = *in[index + 1];
|
|
|
|
|