[FFmpeg-cvslog] avcodec/mpegvideo_{dec,motion}: Mark unreachable code as unreachable
Andreas Rheinhardt
git at videolan.org
Wed May 21 13:47:51 EEST 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri May 24 18:16:00 2024 +0200| [ef58de7fdc4db31b8908d9f6fe297e2d9669d775] | committer: Andreas Rheinhardt
avcodec/mpegvideo_{dec,motion}: Mark unreachable code as unreachable
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ef58de7fdc4db31b8908d9f6fe297e2d9669d775
---
libavcodec/mpegvideo_dec.c | 2 +-
libavcodec/mpegvideo_motion.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c
index 4aefe6e047..9cb3eab50d 100644
--- a/libavcodec/mpegvideo_dec.c
+++ b/libavcodec/mpegvideo_dec.c
@@ -810,7 +810,7 @@ static inline void MPV_motion_lowres(MpegEncContext *s,
}
break;
default:
- av_assert2(0);
+ av_unreachable("No other mpegvideo MV types exist");
}
}
diff --git a/libavcodec/mpegvideo_motion.c b/libavcodec/mpegvideo_motion.c
index edc4931092..a48b898dac 100644
--- a/libavcodec/mpegvideo_motion.c
+++ b/libavcodec/mpegvideo_motion.c
@@ -813,7 +813,8 @@ static av_always_inline void mpv_motion_internal(MpegEncContext *s,
}
break;
}
- default: av_assert2(0);
+ default:
+ av_unreachable("No other mpegvideo MV types exist");
}
}
More information about the ffmpeg-cvslog
mailing list