[FFmpeg-cvslog] avcodec/vp9: Replace av_assert(0) by av_unreachable()

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


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue May  6 16:06:40 2025 +0200| [0bdb69119aaa2f5c3a45a3676d7545ba16becd82] | committer: Andreas Rheinhardt

avcodec/vp9: Replace av_assert(0) by av_unreachable()

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

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

 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;



More information about the ffmpeg-cvslog mailing list