aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-05-26 03:04:31 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2022-05-30 12:13:29 +0200
commit9e4d1549e84eac99f038342a9c14a31c64188ef0 (patch)
tree820077d9e3c350ed1bae08cfa7b7e70bad2f3238
parenta7e099732405c5f048fb306d8e3c1dffe0d60e41 (diff)
downloadffmpeg-9e4d1549e84eac99f038342a9c14a31c64188ef0.tar.gz
avcodec/pcm-dvdenc: Mark unreachable defaults
Helps: CID1441929 Helps: CID1441931 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/pcm-dvdenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/pcm-dvdenc.c b/libavcodec/pcm-dvdenc.c
index f18855cfa7..6bab1e0aaa 100644
--- a/libavcodec/pcm-dvdenc.c
+++ b/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;