From 4ca5d0fa3587e1de7d698e16d7eea7c98d432fdf Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 21 May 2025 12:55:48 +0200 Subject: [PATCH 4/4] avcodec/pcm: Use av_unreachable() for unreachable code Signed-off-by: Andreas Rheinhardt --- libavcodec/pcm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index bff61f2195..68b1945194 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -327,6 +327,8 @@ static av_cold av_unused int pcm_lut_decode_init(AVCodecContext *avctx) PCMLUTDecode *s = avctx->priv_data; switch (avctx->codec_id) { + default: + av_unreachable("pcm_lut_decode_init() only used with alaw, mulaw and vidc"); case AV_CODEC_ID_PCM_ALAW: for (int i = 0; i < 256; i++) s->table[i] = alaw2linear(i); -- 2.45.2