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

Git pushed a commit to branch master
in repository ffmpeg.

commit 089a48eb36b2c0d185867522a1fc2613b5bbb96f
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Aug 14 16:58:08 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Mon Aug 31 19:10:45 2026 +0000

    avformat/shared: add Spacemap header size assertion
    
    Ensures the padding is correctly updated after additions.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavformat/shared.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/shared.c b/libavformat/shared.c
index 9849762390..646976f507 100644
--- a/libavformat/shared.c
+++ b/libavformat/shared.c
@@ -35,6 +35,7 @@
 #include "internal.h"
 #include "url.h"
 
+#include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <inttypes.h>
@@ -129,6 +130,8 @@ typedef struct Spacemap {
     Block blocks[];
 } Spacemap;
 
+static_assert(offsetof(Spacemap, blocks) == 128, "Spacemap header layout 
mismatch");
+
 /* Set to value iff the current value is unset (zero) */
 #define DEF_SET_ONCE(ctype, atype)                                             
 \
     static int set_once_##atype(atomic_##atype *const ptr, const ctype value)  
 \

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to