This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 8f80421b2d swscale/aarch64/ops_static: fix av_assert0 on NDEBUG builds
8f80421b2d is described below
commit 8f80421b2da8f2f29bff7de089c3f06eeae32c9c
Author: Kacper Michajłow <[email protected]>
AuthorDate: Thu Jul 30 10:20:50 2026 +0200
Commit: Kacper Michajłow <[email protected]>
CommitDate: Wed Aug 5 13:06:18 2026 +0000
swscale/aarch64/ops_static: fix av_assert0 on NDEBUG builds
av_assert0 suppose to run always.
Signed-off-by: Kacper Michajłow <[email protected]>
---
libswscale/aarch64/ops_static.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/libswscale/aarch64/ops_static.c b/libswscale/aarch64/ops_static.c
index 9986dd3032..74891d2be3 100644
--- a/libswscale/aarch64/ops_static.c
+++ b/libswscale/aarch64/ops_static.c
@@ -40,7 +40,15 @@
#define AVUTIL_LOG_H
#define AVUTIL_MACROS_H
#define AVUTIL_MEM_H
-#define av_assert0(cond) assert(cond)
+#define AV_STRINGIFY(s) AV_TOSTRING(s)
+#define AV_TOSTRING(s) #s
+#define av_assert0(cond) do { \
+ if (!(cond)) { \
+ fprintf(stderr, "Assertion %s failed at %s:%d\n", \
+ AV_STRINGIFY(cond), __FILE__, __LINE__); \
+ abort(); \
+ } \
+} while (0)
#define av_malloc(s) malloc(s)
#define av_mallocz(s) calloc(1, s)
#define av_realloc(p, s) realloc(p, s)
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]