aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-05-16 18:24:38 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-05-26 03:38:37 +0200
commitded08d0b1bb46bee50fafd4d12c5e9af16f10718 (patch)
tree9073d39a7cf9bc3176a5699bc23a897a09d26f7c
parentef95a8d7b5bec6313639ce30f31a743a75bc51d2 (diff)
downloadffmpeg-ded08d0b1bb46bee50fafd4d12c5e9af16f10718.tar.gz
avcodec/msmpeg4dec: Use av_unreachable() for unreachable code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/msmpeg4dec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/msmpeg4dec.c b/libavcodec/msmpeg4dec.c
index df67d43542..ddb990b1a0 100644
--- a/libavcodec/msmpeg4dec.c
+++ b/libavcodec/msmpeg4dec.c
@@ -379,6 +379,8 @@ av_cold int ff_msmpeg4_decode_init(AVCodecContext *avctx)
break;
case MSMP4_WMV2:
break;
+ default:
+ av_unreachable("List contains all cases using ff_msmpeg4_decode_init()");
}
s->slice_height= s->mb_height; //to avoid 1/0 if the first frame is not a keyframe
@@ -472,6 +474,8 @@ int ff_msmpeg4_decode_picture_header(MpegEncContext * s)
ms->dc_table_index = get_bits1(&s->gb);
s->inter_intra_pred= 0;
break;
+ default:
+ av_unreachable("ff_msmpeg4_decode_picture_header() only used by MSMP4V1-3, WMV1");
}
s->no_rounding = 1;
if(s->avctx->debug&FF_DEBUG_PICT_INFO)
@@ -523,6 +527,8 @@ int ff_msmpeg4_decode_picture_header(MpegEncContext * s)
s->inter_intra_pred = s->width*s->height < 320*240 &&
ms->bit_rate <= II_BITRATE;
break;
+ default:
+ av_unreachable("ff_msmpeg4_decode_picture_header() only used by MSMP4V1-3, WMV1");
}
if(s->avctx->debug&FF_DEBUG_PICT_INFO)