From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id E921D42B41 for ; Thu, 26 May 2022 01:04:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5752068B511; Thu, 26 May 2022 04:04:39 +0300 (EEST) Received: from vie01a-dmta-at02-3.mx.upcmail.net (vie01a-dmta-at02-3.mx.upcmail.net [62.179.121.150]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 14C6668B511 for ; Thu, 26 May 2022 04:04:33 +0300 (EEST) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-at02.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1nu1vU-0004dY-5U for ffmpeg-devel@ffmpeg.org; Thu, 26 May 2022 03:04:32 +0200 Received: from ren-mail-psmtp-mg01. ([80.109.253.241]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id u1vJnvQEv8s8Uu1vTnUJsG; Thu, 26 May 2022 03:04:32 +0200 Received: from localhost ([213.47.68.29]) by ren-mail-psmtp-mg01. with ESMTP id u1vTn10YfOPqFu1vTnOkLi; Thu, 26 May 2022 03:04:31 +0200 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.4 cv=OcX7sjfY c=1 sm=1 tr=0 ts=628ed21f a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=dZPZkwmkdJoTE0mHiAgA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 26 May 2022 03:04:31 +0200 Message-Id: <20220526010431.27136-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-CMAE-Envelope: MS4wfOroUJhWMVMfUmCfKG8HSCaekqfqiYQGU6QrkhvpBonW3mzxa2LZb+Z3IfZFo/6xmL8DY7qX6C6ubpbMn8SPzDq3rqBakaRTILSYj/U6c4cLSYJrU2Qe 5s7y5k8EzMg/EbXg5zZnGkqzM1AgYfQ3GgQQSJWof8shhUOOTfF6PNPSA/oCWxcCMAJEgcbyq8TTEg== Subject: [FFmpeg-devel] [PATCH] avcodec/pcm-dvdenc: Mark unreachable defaults X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Helps: CID1441929 Helps: CID1441931 Signed-off-by: Michael Niedermayer --- libavcodec/pcm-dvdenc.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".