From 328ba54efa3b0bc3f6841225f2adc355c4954658 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 6 May 2025 17:56:43 +0200 Subject: [PATCH] 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 94f4268127..c6b2ce1230 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"); } }