1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/pcm: Use av_unreachable() for unreachable code

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-05-21 12:55:48 +02:00
parent 0d73ce4bc4
commit 7ae20272b7

View File

@ -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);