x86: dsputil: int --> ptrdiff_t for ff_put_pixels16_mmxext line_size param
authorDaniel Kang <daniel.d.kang@gmail.com>
Fri, 15 Feb 2013 20:13:58 +0000 (15:13 -0500)
committerDiego Biurrun <diego@biurrun.de>
Mon, 18 Feb 2013 14:23:03 +0000 (15:23 +0100)
This avoids SIMD-optimized functions having to sign-extend their
line size argument manually to be able to do pointer arithmetic.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/x86/dsputil_mmx.c

index c011a21..fbc4b01 100644 (file)
@@ -147,7 +147,7 @@ void ff_avg_pixels8_xy2_3dnow(uint8_t *block, const uint8_t *pixels,
 
 void ff_put_pixels8_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h);
 static void ff_put_pixels16_mmxext(uint8_t *block, const uint8_t *pixels,
-                                   int line_size, int h)
+                                   ptrdiff_t line_size, int h)
 {
     ff_put_pixels8_mmxext(block,     pixels,     line_size, h);
     ff_put_pixels8_mmxext(block + 8, pixels + 8, line_size, h);