mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user