diff options
author | Måns Rullgård <mans@mansr.com> | 2005-09-06 21:25:35 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2005-09-06 21:25:35 +0000 |
commit | 79396ac68573628f3b59142601db86a0f4ba7ad5 (patch) | |
tree | 4dfa0ec8e3e2e4ae1e1a5508ef8b311892ecf6ff /libavcodec/i386/dsputil_mmx.c | |
parent | b40e353aa49737da9501b092d18011c79def8e30 (diff) | |
download | ffmpeg-79396ac68573628f3b59142601db86a0f4ba7ad5.tar.gz |
Kill some compiler warnings. Compiled code verified identical after changes.
Originally committed as revision 4567 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/dsputil_mmx.c')
-rw-r--r-- | libavcodec/i386/dsputil_mmx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 6bd2b32b9d..7c3d7efe7e 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -1080,7 +1080,8 @@ static int hf_noise16_mmx(uint8_t * pix1, int line_size, int h) { return tmp + hf_noise8_mmx(pix+8, line_size, h); } -static int nsse16_mmx(MpegEncContext *c, uint8_t * pix1, uint8_t * pix2, int line_size, int h) { +static int nsse16_mmx(void *p, uint8_t * pix1, uint8_t * pix2, int line_size, int h) { + MpegEncContext *c = p; int score1= sse16_mmx(c, pix1, pix2, line_size, h); int score2= hf_noise16_mmx(pix1, line_size, h) - hf_noise16_mmx(pix2, line_size, h); @@ -1088,7 +1089,8 @@ static int nsse16_mmx(MpegEncContext *c, uint8_t * pix1, uint8_t * pix2, int lin else return score1 + ABS(score2)*8; } -static int nsse8_mmx(MpegEncContext *c, uint8_t * pix1, uint8_t * pix2, int line_size, int h) { +static int nsse8_mmx(void *p, uint8_t * pix1, uint8_t * pix2, int line_size, int h) { + MpegEncContext *c = p; int score1= sse8_mmx(c, pix1, pix2, line_size, h); int score2= hf_noise8_mmx(pix1, line_size, h) - hf_noise8_mmx(pix2, line_size, h); |