From cfaac5c2494bab44ba0b034aff448c4fb27beb1c Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Thu, 12 Jun 2008 09:17:49 -0600 Subject: [PATCH] Fix regression in 64-bit in r882 i_mvc needs to be 64-bit when used with a 64-bit memory pointer --- common/common.h | 2 +- common/x86/util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.h b/common/common.h index 572231ae..aaf584a2 100644 --- a/common/common.h +++ b/common/common.h @@ -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++ ) diff --git a/common/x86/util.h b/common/x86/util.h index 4b149f28..59d17495 100644 --- a/common/x86/util.h +++ b/common/x86/util.h @@ -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]; -- 2.47.3