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

Git pushed a commit to branch master
in repository ffmpeg.

commit 3de38c6b6e2cd5ceb91c7054a8e10f26c13cd146
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sun Apr 12 13:08:03 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Thu Apr 16 07:36:01 2026 +0200

    avcodec/h264chroma: Fix incorrect alignment documentation
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/h264chroma.h          | 4 +++-
 libavcodec/h264chroma_template.c | 6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/libavcodec/h264chroma.h b/libavcodec/h264chroma.h
index 80a82e4b25..eab26ddd12 100644
--- a/libavcodec/h264chroma.h
+++ b/libavcodec/h264chroma.h
@@ -22,7 +22,9 @@
 #include <stddef.h>
 #include <stdint.h>
 
-typedef void (*h264_chroma_mc_func)(uint8_t *dst /*align 8*/, const uint8_t 
*src /*align 1*/, ptrdiff_t srcStride, int h, int x, int y);
+typedef void (*h264_chroma_mc_func)(uint8_t *dst /* align width * 
(bit_depth+7)/8) */,
+                                    const uint8_t *src /* align 
(bit_depth+7)/8) */,
+                                    ptrdiff_t srcStride, int h, int x, int y);
 
 typedef struct H264ChromaContext {
     h264_chroma_mc_func put_h264_chroma_pixels_tab[4];
diff --git a/libavcodec/h264chroma_template.c b/libavcodec/h264chroma_template.c
index f6e6d4a2ec..35470c054f 100644
--- a/libavcodec/h264chroma_template.c
+++ b/libavcodec/h264chroma_template.c
@@ -26,7 +26,7 @@
 #include "bit_depth_template.c"
 
 #define H264_CHROMA_MC(OPNAME, OP)\
-MC2_STATIC void FUNCC(ff_ ## OPNAME ## h264_chroma_mc2)(uint8_t *_dst /*align 
8*/, const uint8_t *_src /*align 1*/, ptrdiff_t stride, int h, int x, int y)\
+MC2_STATIC void FUNCC(ff_ ## OPNAME ## h264_chroma_mc2)(uint8_t *_dst, const 
uint8_t *_src, ptrdiff_t stride, int h, int x, int y)\
 {\
     pixel *dst = (pixel*)_dst;\
     const pixel *src = (const pixel*)_src;\
@@ -65,7 +65,7 @@ MC2_STATIC void FUNCC(ff_ ## OPNAME ## 
h264_chroma_mc2)(uint8_t *_dst /*align 8*
     }\
 }\
 \
-static void FUNCC(OPNAME ## h264_chroma_mc4)(uint8_t *_dst /*align 8*/, const 
uint8_t *_src /*align 1*/, ptrdiff_t stride, int h, int x, int y)\
+static void FUNCC(OPNAME ## h264_chroma_mc4)(uint8_t *_dst, const uint8_t 
*_src, ptrdiff_t stride, int h, int x, int y)\
 {\
     pixel *dst = (pixel*)_dst;\
     const pixel *src = (const pixel*)_src;\
@@ -110,7 +110,7 @@ static void FUNCC(OPNAME ## h264_chroma_mc4)(uint8_t *_dst 
/*align 8*/, const ui
     }\
 }\
 \
-static void FUNCC(OPNAME ## h264_chroma_mc8)(uint8_t *_dst /*align 8*/, const 
uint8_t *_src /*align 1*/, ptrdiff_t stride, int h, int x, int y)\
+static void FUNCC(OPNAME ## h264_chroma_mc8)(uint8_t *_dst, const uint8_t 
*_src, ptrdiff_t stride, int h, int x, int y)\
 {\
     pixel *dst = (pixel*)_dst;\
     const pixel *src = (const pixel*)_src;\

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

Reply via email to