avcodec/mpegvideo_motion: Add av_unreachable, fix fallthrough warnings

Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-04-28 20:47:52 +02:00
parent 4b58570ff7
commit 7b4b658a87
+2
View File
@@ -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");
}