[FFmpeg-cvslog] x86: h264qpel: int --> ptrdiff_t for some line_size parameters

Diego Biurrun git at videolan.org
Fri Apr 12 22:27:11 CEST 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Apr 11 01:17:12 2013 +0200| [a89c05500f68d94a0269e68bc522abfd420c5497] | committer: Diego Biurrun

x86: h264qpel: int --> ptrdiff_t for some line_size parameters

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a89c05500f68d94a0269e68bc522abfd420c5497
---

 libavcodec/x86/h264_qpel.c |   13 ++++++++-----
 libavcodec/x86/qpel.asm    |    2 +-
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/libavcodec/x86/h264_qpel.c b/libavcodec/x86/h264_qpel.c
index f909825..2d1c443 100644
--- a/libavcodec/x86/h264_qpel.c
+++ b/libavcodec/x86/h264_qpel.c
@@ -28,17 +28,20 @@
 #include "dsputil_mmx.h"
 
 #if HAVE_YASM
-void ff_put_pixels4_mmxext(uint8_t *block, const uint8_t *pixels, int line_size, int h);
-void ff_avg_pixels4_mmxext(uint8_t *block, const uint8_t *pixels, int line_size, int h);
-void ff_put_pixels8_mmxext(uint8_t *block, const uint8_t *pixels, int line_size, int h);
+void ff_put_pixels4_mmxext(uint8_t *block, const uint8_t *pixels,
+                           ptrdiff_t line_size, int h);
+void ff_avg_pixels4_mmxext(uint8_t *block, const uint8_t *pixels,
+                           ptrdiff_t line_size, int h);
+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);
 }
 static void ff_avg_pixels16_mmxext(uint8_t *block, const uint8_t *pixels,
-                                   int line_size, int h)
+                                   ptrdiff_t line_size, int h)
 {
     ff_avg_pixels8_mmxext(block,     pixels,     line_size, h);
     ff_avg_pixels8_mmxext(block + 8, pixels + 8, line_size, h);
diff --git a/libavcodec/x86/qpel.asm b/libavcodec/x86/qpel.asm
index ba97e2a..583f0d2 100644
--- a/libavcodec/x86/qpel.asm
+++ b/libavcodec/x86/qpel.asm
@@ -176,7 +176,7 @@ PIXELS16_L2 put
 PIXELS16_L2 avg
 
 INIT_MMX mmxext
-; void pixels(uint8_t *block, const uint8_t *pixels, int line_size, int h)
+; void pixels(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
 %macro PIXELS48 2
 %if %2 == 4
 %define OP movh



More information about the ffmpeg-cvslog mailing list