mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
avcodec/mips: Fixed four warnings in vc1dsp
Change the stride argument to ptrdiff_t in the following functions: ff_put_no_rnd_vc1_chroma_mc8_mmi, ff_put_no_rnd_vc1_chroma_mc4_mmi, ff_avg_no_rnd_vc1_chroma_mc8_mmi, ff_avg_no_rnd_vc1_chroma_mc4_mmi. Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e418b315dd
commit
21d19f49b7
@ -180,15 +180,15 @@ void ff_vc1_h_loop_filter16_mmi(uint8_t *src, int stride, int pq);
|
||||
|
||||
void ff_put_no_rnd_vc1_chroma_mc8_mmi(uint8_t *dst /* align 8 */,
|
||||
uint8_t *src /* align 1 */,
|
||||
int stride, int h, int x, int y);
|
||||
ptrdiff_t stride, int h, int x, int y);
|
||||
void ff_put_no_rnd_vc1_chroma_mc4_mmi(uint8_t *dst /* align 8 */,
|
||||
uint8_t *src /* align 1 */,
|
||||
int stride, int h, int x, int y);
|
||||
ptrdiff_t stride, int h, int x, int y);
|
||||
void ff_avg_no_rnd_vc1_chroma_mc8_mmi(uint8_t *dst /* align 8 */,
|
||||
uint8_t *src /* align 1 */,
|
||||
int stride, int h, int x, int y);
|
||||
ptrdiff_t stride, int h, int x, int y);
|
||||
void ff_avg_no_rnd_vc1_chroma_mc4_mmi(uint8_t *dst /* align 8 */,
|
||||
uint8_t *src /* align 1 */,
|
||||
int stride, int h, int x, int y);
|
||||
ptrdiff_t stride, int h, int x, int y);
|
||||
|
||||
#endif /* AVCODEC_MIPS_VC1DSP_MIPS_H */
|
||||
|
@ -2241,7 +2241,7 @@ DECLARE_FUNCTION(3, 3)
|
||||
|
||||
void ff_put_no_rnd_vc1_chroma_mc8_mmi(uint8_t *dst /* align 8 */,
|
||||
uint8_t *src /* align 1 */,
|
||||
int stride, int h, int x, int y)
|
||||
ptrdiff_t stride, int h, int x, int y)
|
||||
{
|
||||
const int A = (8 - x) * (8 - y);
|
||||
const int B = (x) * (8 - y);
|
||||
@ -2296,7 +2296,7 @@ void ff_put_no_rnd_vc1_chroma_mc8_mmi(uint8_t *dst /* align 8 */,
|
||||
|
||||
void ff_put_no_rnd_vc1_chroma_mc4_mmi(uint8_t *dst /* align 8 */,
|
||||
uint8_t *src /* align 1 */,
|
||||
int stride, int h, int x, int y)
|
||||
ptrdiff_t stride, int h, int x, int y)
|
||||
{
|
||||
const int A = (8 - x) * (8 - y);
|
||||
const int B = (x) * (8 - y);
|
||||
@ -2349,7 +2349,7 @@ void ff_put_no_rnd_vc1_chroma_mc4_mmi(uint8_t *dst /* align 8 */,
|
||||
|
||||
void ff_avg_no_rnd_vc1_chroma_mc8_mmi(uint8_t *dst /* align 8 */,
|
||||
uint8_t *src /* align 1 */,
|
||||
int stride, int h, int x, int y)
|
||||
ptrdiff_t stride, int h, int x, int y)
|
||||
{
|
||||
const int A = (8 - x) * (8 - y);
|
||||
const int B = (x) * (8 - y);
|
||||
@ -2407,7 +2407,7 @@ void ff_avg_no_rnd_vc1_chroma_mc8_mmi(uint8_t *dst /* align 8 */,
|
||||
|
||||
void ff_avg_no_rnd_vc1_chroma_mc4_mmi(uint8_t *dst /* align 8 */,
|
||||
uint8_t *src /* align 1 */,
|
||||
int stride, int h, int x, int y)
|
||||
ptrdiff_t stride, int h, int x, int y)
|
||||
{
|
||||
const int A = (8 - x) * (8 - y);
|
||||
const int B = ( x) * (8 - y);
|
||||
|
Loading…
Reference in New Issue
Block a user