diff options
author | James Cowgill <james410@cowgill.org.uk> | 2015-02-26 13:42:51 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-03 21:36:33 +0100 |
commit | de4f59b5367213fc5a10df6570f9f33757302fbd (patch) | |
tree | b673fc5d8fd24ddea12921d7c5857e766a719030 /libavcodec/mips/sbrdsp_mips.c | |
parent | 0dd53e14f9684a787d6c66d3cb44afb0a6bb2b7b (diff) | |
download | ffmpeg-de4f59b5367213fc5a10df6570f9f33757302fbd.tar.gz |
mips: use float* to hold pointer instead of int
This is obviously needed for 64-bit support.
Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mips/sbrdsp_mips.c')
-rw-r--r-- | libavcodec/mips/sbrdsp_mips.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mips/sbrdsp_mips.c b/libavcodec/mips/sbrdsp_mips.c index c76e7092f4..000d3b5f49 100644 --- a/libavcodec/mips/sbrdsp_mips.c +++ b/libavcodec/mips/sbrdsp_mips.c @@ -664,14 +664,14 @@ static void sbr_hf_gen_mips(float (*X_high)[2], const float (*X_low)[2], static void sbr_hf_g_filt_mips(float (*Y)[2], const float (*X_high)[40][2], const float *g_filt, int m_max, intptr_t ixh) { - float *p_y, *p_x, *p_g; + const float *p_x, *p_g, *loop_end; + float *p_y; float temp0, temp1, temp2; - int loop_end; - p_g = (float*)&g_filt[0]; + p_g = &g_filt[0]; p_y = &Y[0][0]; - p_x = (float*)&X_high[0][ixh][0]; - loop_end = (int)((int*)p_g + m_max); + p_x = &X_high[0][ixh][0]; + loop_end = p_g + m_max; __asm__ volatile( ".set push \n\t" |