avcodec/pcm: Use av_unreachable() for unreachable code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0d73ce4bc4
commit
7ae20272b7
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue