avcodec/pcm-dvdenc: Mark unreachable defaults

Helps: CID1441929
Helps: CID1441931

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/5.1
Michael Niedermayer 3 years ago
parent a7e0997324
commit 9e4d1549e8
  1. 4
      libavcodec/pcm-dvdenc.c

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

Loading…
Cancel
Save