This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 7b05d16ce71d7525493354f2f725cded9dbc05d2
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sat Aug 8 02:25:34 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Tue Aug 11 21:17:13 2026 +0200

    avcodec/mpeg4videodsp: Use ptrdiff_t for stride
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/mpeg4videodsp.c     | 4 ++--
 libavcodec/mpeg4videodsp.h     | 7 ++++---
 libavcodec/ppc/mpeg4videodsp.c | 2 +-
 libavcodec/x86/mpeg4videodsp.c | 2 +-
 tests/checkasm/mpeg4videodsp.c | 2 +-
 5 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/libavcodec/mpeg4videodsp.c b/libavcodec/mpeg4videodsp.c
index 1c5661a076..7067d8e885 100644
--- a/libavcodec/mpeg4videodsp.c
+++ b/libavcodec/mpeg4videodsp.c
@@ -21,7 +21,7 @@
 #include "libavutil/common.h"
 #include "mpeg4videodsp.h"
 
-static void gmc1_c(uint8_t *dst, const uint8_t *src, int stride, int h,
+static void gmc1_c(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h,
                    int x16, int y16, int rounder)
 {
     const int A = (16 - x16) * (16 - y16);
@@ -44,7 +44,7 @@ static void gmc1_c(uint8_t *dst, const uint8_t *src, int 
stride, int h,
     }
 }
 
-void ff_gmc_c(uint8_t *dst, const uint8_t *src, int stride, int h, int ox, int 
oy,
+void ff_gmc_c(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h, int 
ox, int oy,
               int dxx, int dxy, int dyx, int dyy, int shift, int r,
               int width, int height)
 {
diff --git a/libavcodec/mpeg4videodsp.h b/libavcodec/mpeg4videodsp.h
index e1ccb71ce9..05f1ccc8a9 100644
--- a/libavcodec/mpeg4videodsp.h
+++ b/libavcodec/mpeg4videodsp.h
@@ -19,9 +19,10 @@
 #ifndef AVCODEC_MPEG4VIDEODSP_H
 #define AVCODEC_MPEG4VIDEODSP_H
 
+#include <stddef.h>
 #include <stdint.h>
 
-void ff_gmc_c(uint8_t *dst, const uint8_t *src, int stride, int h, int ox, int 
oy,
+void ff_gmc_c(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h, int 
ox, int oy,
               int dxx, int dxy, int dyx, int dyy, int shift, int r,
               int width, int height);
 
@@ -30,12 +31,12 @@ typedef struct Mpeg4VideoDSPContext {
      * translational global motion compensation.
      */
     void (*gmc1)(uint8_t *dst /* align 8 */, const uint8_t *src /* align 1 */,
-                 int srcStride, int h, int x16, int y16, int rounder);
+                 ptrdiff_t srcStride, int h, int x16, int y16, int rounder);
     /**
      * global motion compensation.
      */
     void (*gmc)(uint8_t *dst /* align 8 */, const uint8_t *src /* align 1 */,
-                int stride, int h, int ox, int oy,
+                ptrdiff_t stride, int h, int ox, int oy,
                 int dxx, int dxy, int dyx, int dyy,
                 int shift, int r, int width, int height);
 } Mpeg4VideoDSPContext;
diff --git a/libavcodec/ppc/mpeg4videodsp.c b/libavcodec/ppc/mpeg4videodsp.c
index 8b30af4258..79e19ab6eb 100644
--- a/libavcodec/ppc/mpeg4videodsp.c
+++ b/libavcodec/ppc/mpeg4videodsp.c
@@ -32,7 +32,7 @@
 /* AltiVec-enhanced gmc1. ATM this code assumes stride is a multiple of 8
  * to preserve proper dst alignment. */
 static void gmc1_altivec(uint8_t *dst /* align 8 */, const uint8_t *src /* 
align1 */,
-                         int stride, int h, int x16, int y16, int rounder)
+                         ptrdiff_t stride, int h, int x16, int y16, int 
rounder)
 {
     int i;
     const DECLARE_ALIGNED(16, unsigned short, rounder_a) = rounder;
diff --git a/libavcodec/x86/mpeg4videodsp.c b/libavcodec/x86/mpeg4videodsp.c
index d326327f13..337a4b32d7 100644
--- a/libavcodec/x86/mpeg4videodsp.c
+++ b/libavcodec/x86/mpeg4videodsp.c
@@ -37,7 +37,7 @@ typedef struct {
 DECLARE_ASM_CONST(16, xmm_u16, pw_0to7) = { { 0, 1, 2, 3, 4, 5, 6, 7 } };
 
 static void gmc_ssse3(uint8_t *dst, const uint8_t *src,
-                      int stride, int h, int ox, int oy,
+                      ptrdiff_t stride, int h, int ox, int oy,
                       int dxx, int dxy, int dyx, int dyy,
                       int shift, int r, int width, int height)
 {
diff --git a/tests/checkasm/mpeg4videodsp.c b/tests/checkasm/mpeg4videodsp.c
index 49557224f5..a24ef480d8 100644
--- a/tests/checkasm/mpeg4videodsp.c
+++ b/tests/checkasm/mpeg4videodsp.c
@@ -81,7 +81,7 @@ static void checkasm_check_gmc(const Mpeg4VideoDSPContext 
*const mdsp)
     DECLARE_ALIGNED_4(uint8_t, srcbuf)[MAX_STRIDE * MAX_HEIGHT];
 
     declare_func(void, uint8_t *dst, const uint8_t *src,
-                 int stride, int h, int ox, int oy,
+                 ptrdiff_t stride, int h, int ox, int oy,
                  int dxx, int dxy, int dyx, int dyy,
                  int shift, int r, int width, int height);
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to