From 7b4b658a87a35dd15ea4455b04209390f1420c75 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 28 Apr 2026 20:47:52 +0200 Subject: [PATCH] avcodec/mpegvideo_motion: Add av_unreachable, fix fallthrough warnings Reviewed-by: Ramiro Polla Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegvideo_motion.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/mpegvideo_motion.c b/libavcodec/mpegvideo_motion.c index 741927d809..696cc4980d 100644 --- a/libavcodec/mpegvideo_motion.c +++ b/libavcodec/mpegvideo_motion.c @@ -785,6 +785,7 @@ static av_always_inline void mpv_motion_internal(MpegEncContext *s, } break; } + av_unreachable("MV_TYPE_16X8 is only used by MPEG-1/2"); case MV_TYPE_DMV: if (CONFIG_SMALL || is_mpeg12) { if (s->picture_structure == PICT_FRAME) { @@ -815,6 +816,7 @@ static av_always_inline void mpv_motion_internal(MpegEncContext *s, } break; } + av_unreachable("MV_TYPE_DMV is only used by MPEG-1/2"); default: av_unreachable("No other mpegvideo MV types exist"); }