[FFmpeg-cvslog] avcodec/4xm: Use av_unreachable() instead of av_assert0(0)

Andreas Rheinhardt git at videolan.org
Wed May 21 13:48:07 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue May  6 17:56:43 2025 +0200| [328ba54efa3b0bc3f6841225f2adc355c4954658] | committer: Andreas Rheinhardt

avcodec/4xm: Use av_unreachable() instead of av_assert0(0)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=328ba54efa3b0bc3f6841225f2adc355c4954658
---

 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");
     }
 }
 



More information about the ffmpeg-cvslog mailing list