1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/pcm-dvdenc: Mark unreachable defaults

Helps: CID1441929
Helps: CID1441931

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2022-05-26 03:04:31 +02:00
parent a7e0997324
commit 9e4d1549e8

View File

@ -47,6 +47,8 @@ static av_cold int pcm_dvd_encode_init(AVCodecContext *avctx)
case 96000:
freq = 1;
break;
default:
av_assert1(0);
}
switch (avctx->sample_fmt) {
@ -58,6 +60,8 @@ static av_cold int pcm_dvd_encode_init(AVCodecContext *avctx)
avctx->bits_per_coded_sample = 24;
quant = 2;
break;
default:
av_assert1(0);
}
avctx->bits_per_coded_sample = 16 + quant * 4;