x86: Change a missed occurrance of int to ptrdiff_t for strides

Message ID 1364074594-4204-1-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö March 23, 2013, 9:36 p.m.
---
This hopefully fixes the build in configurations where this mismatch
is a build failure, such as in
http://fate.libav.org/x86_32-openbsd-gcc/20130323172718/compile.
---
 libavcodec/x86/h264_qpel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Derek Buitenhuis March 24, 2013, 4:34 a.m. | #1
On 2013-03-23 5:36 PM, Martin Storsjö wrote:
> ---
> This hopefully fixes the build in configurations where this mismatch
> is a build failure, such as in
> http://fate.libav.org/x86_32-openbsd-gcc/20130323172718/compile.
> ---
>  libavcodec/x86/h264_qpel.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Probably OK.

- Derek

Patch

diff --git a/libavcodec/x86/h264_qpel.c b/libavcodec/x86/h264_qpel.c
index 5b3a287..02c3d3f 100644
--- a/libavcodec/x86/h264_qpel.c
+++ b/libavcodec/x86/h264_qpel.c
@@ -475,7 +475,7 @@  LUMA_MC_816(10, mc23, sse2)
 LUMA_MC_816(10, mc33, sse2)
 
 #define QPEL16_OPMC(OP, MC, MMX)\
-void ff_ ## OP ## _h264_qpel16_ ## MC ## _10_ ## MMX(uint8_t *dst, uint8_t *src, int stride){\
+void ff_ ## OP ## _h264_qpel16_ ## MC ## _10_ ## MMX(uint8_t *dst, uint8_t *src, prtdiff_t stride){\
     ff_ ## OP ## _h264_qpel8_ ## MC ## _10_ ## MMX(dst   , src   , stride);\
     ff_ ## OP ## _h264_qpel8_ ## MC ## _10_ ## MMX(dst+16, src+16, stride);\
     src += 8*stride;\