From 43b37e3074a8ff298c1bbf7f0db320ef88c9bf49 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 6 May 2025 17:56:43 +0200 Subject: [PATCH 20/21] avcodec/4xm: Use av_unreachable() instead of av_assert0(0) Signed-off-by: Andreas Rheinhardt --- libavcodec/4xm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index fd3a45f093..11a61a253e 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -337,7 +337,8 @@ static inline void mcdc(uint16_t *dst, const uint16_t *src, int log2w, } break; default: - av_assert0(0); + av_unreachable("log2w starts at 3 and gets only decremented during " + "recursive calls to decode_p_block"); } } -- 2.45.2