diff options
author | Mans Rullgard <mans@mansr.com> | 2011-06-20 10:24:26 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-06-20 22:36:31 +0100 |
commit | d075e7d5405d716170476a2fea707dfe3330093c (patch) | |
tree | 0755cef4c45080f9bb84adabb900458f411f58e9 /libavcodec/x86/h264_i386.h | |
parent | 3a4edb76d697cfa341ee060647732e5c1400da3a (diff) | |
download | ffmpeg-d075e7d5405d716170476a2fea707dfe3330093c.tar.gz |
x86: h264: cast pointers to intptr_t rather than int
Only the low-order bits are used here so the type is not important,
but this avoids a compiler warning.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86/h264_i386.h')
-rw-r--r-- | libavcodec/x86/h264_i386.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/x86/h264_i386.h b/libavcodec/x86/h264_i386.h index 1b55dd830f..9f5e53105e 100644 --- a/libavcodec/x86/h264_i386.h +++ b/libavcodec/x86/h264_i386.h @@ -40,8 +40,8 @@ static int decode_significance_x86(CABACContext *c, int max_coeff, uint8_t *significant_coeff_ctx_base, int *index, x86_reg last_off){ void *end= significant_coeff_ctx_base + max_coeff - 1; - int minusstart= -(int)significant_coeff_ctx_base; - int minusindex= 4-(int)index; + int minusstart= -(intptr_t)significant_coeff_ctx_base; + int minusindex= 4-(intptr_t)index; int bit; x86_reg coeff_count; int low; @@ -101,7 +101,7 @@ static int decode_significance_x86(CABACContext *c, int max_coeff, static int decode_significance_8x8_x86(CABACContext *c, uint8_t *significant_coeff_ctx_base, int *index, x86_reg last_off, const uint8_t *sig_off){ - int minusindex= 4-(int)index; + int minusindex= 4-(intptr_t)index; int bit; x86_reg coeff_count; int low; |