PR #23958 opened by Kacper Michajłow (kasper93) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23958 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23958.patch
av_assert0 suppose to run always. From 030b42c2a1aebbdc401880224b862637045c458e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]> Date: Thu, 30 Jul 2026 10:20:50 +0200 Subject: [PATCH] swscale/aarch64/ops_static: fix av_assert0 on NDEBUG builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit av_assert0 suppose to run always. Signed-off-by: Kacper Michajłow <[email protected]> --- libswscale/aarch64/ops_static.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libswscale/aarch64/ops_static.c b/libswscale/aarch64/ops_static.c index 9986dd3032..09e34ba962 100644 --- a/libswscale/aarch64/ops_static.c +++ b/libswscale/aarch64/ops_static.c @@ -40,7 +40,13 @@ #define AVUTIL_LOG_H #define AVUTIL_MACROS_H #define AVUTIL_MEM_H -#define av_assert0(cond) assert(cond) +#define av_assert0(cond) do { \ + if (!(cond)) { \ + av_log(NULL, AV_LOG_PANIC, "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) -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
