From a32835e7db07ce1ac3c222b0e1cc738afb962a56 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 6 May 2025 16:06:40 +0200 Subject: [PATCH 17/21] avcodec/vp9: Replace av_assert(0) by av_unreachable() Signed-off-by: Andreas Rheinhardt --- libavcodec/vp9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index fd416eed3a..141f0941b4 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1140,7 +1140,8 @@ static void decode_sb(VP9TileData *td, int row, int col, VP9Filter *lflvl, uvoff + (8 * hbs * bytesperpixel >> s->ss_h), bl + 1); break; default: - av_assert0(0); + av_unreachable("ff_vp9_partition_tree only has " + "the four PARTITION_* terminal codes"); } } else if (vpx_rac_get_prob_branchy(td->c, p[1])) { bp = PARTITION_SPLIT; -- 2.45.2