Commit d108f919 authored by Fiona Glaser's avatar Fiona Glaser

Fix regression in 64-bit in r882

i_mvc needs to be 64-bit when used with a 64-bit memory pointer
parent 52041128
......@@ -130,7 +130,7 @@ static inline void x264_median_mv( int16_t *dst, int16_t *a, int16_t *b, int16_t
dst[1] = x264_median( a[1], b[1], c[1] );
}
static inline int x264_predictor_difference( int16_t (*mvc)[2], int i_mvc )
static inline int x264_predictor_difference( int16_t (*mvc)[2], intptr_t i_mvc )
{
int sum = 0, i;
for( i = 0; i < i_mvc-1; i++ )
......
......@@ -40,7 +40,7 @@ static inline void x264_median_mv_mmxext( int16_t *dst, int16_t *a, int16_t *b,
);
}
#define x264_predictor_difference x264_predictor_difference_mmxext
static inline int x264_predictor_difference_mmxext( int16_t (*mvc)[2], int i_mvc )
static inline int x264_predictor_difference_mmxext( int16_t (*mvc)[2], intptr_t i_mvc )
{
int sum = 0;
uint16_t output[4];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment