From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id AB6A44C15F for ; Thu, 31 Jul 2025 01:27:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id AC02F68CB8E; Thu, 31 Jul 2025 04:27:28 +0300 (EEST) Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id A58F568CA01 for ; Thu, 31 Jul 2025 04:27:20 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=VI gYRq0cS81XaQbnpvO48WzLwiyTJBDebCVJqKWbB38=; b=ksJJ03gSGkEg5nKkZO g2D91i2ydoRo/2/uREydIsOAs/2f9SH91C9QF9YoNGwPyQCaEx/YUnQt420SXfpn 6A3w3mfZ+Y/EApudYZiCOKLfNgJuLYmfSZdzmrsgIOTRc1lB7jENXt13Mn4QBOwQ AL1vcsREIVoWSADi2AfZrI5/w= Received: from 6308325SC00857 (unknown []) by gzga-smtp-mtada-g1-1 (Coremail) with SMTP id _____wDndwZvxopowLRcIg--.45294S2; Thu, 31 Jul 2025 09:27:13 +0800 (CST) From: zhaozhenghang <15083277223@163.com> To: ffmpeg-devel@ffmpeg.org Date: Thu, 31 Jul 2025 09:27:07 +0800 Message-ID: <20250731012707.1594-1-15083277223@163.com> X-Mailer: git-send-email 2.50.1.windows.1 MIME-Version: 1.0 X-CM-TRANSID: _____wDndwZvxopowLRcIg--.45294S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GrW7Cr4xAr1Dtw4UtrWkJFb_yoWDWrXEk3 W7CF1UAFWj9r43ua10kw4xCw4kGr95uFyrX3ZIqrs5JFWvqrn8JasrWwn5GFyFgFZxuF4f Za1rZF9akr1q9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRRlks3UUUUU== X-Originating-IP: [1.202.162.79] X-CM-SenderInfo: bprvimitsxljist6il2tof0z/xtbBXwCbjmiKwjZlSgAAsz Subject: [FFmpeg-devel] [PATCH 1/1] libavformat/mov.c: Fix "statement will never be executed" warning 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 Cc: zhaozhenghang <15083277223@163.com> 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: Fix "statement will never be executed" warning that occurs when CONFIG_H261_DECODER, CONFIG_H263_DECODER, and CONFIG_MPEG4_DECODER are set to 0 by default. Signed-off-by: zhaozhenghang <15083277223@163.com> --- libavformat/mov.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 55b0950b5e..5ff9b5ba1b 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5225,18 +5225,14 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom) } switch (st->codecpar->codec_id) { -#if CONFIG_H261_DECODER case AV_CODEC_ID_H261: -#endif -#if CONFIG_H263_DECODER case AV_CODEC_ID_H263: -#endif -#if CONFIG_MPEG4_DECODER case AV_CODEC_ID_MPEG4: -#endif st->codecpar->width = 0; /* let decoder init width/height */ st->codecpar->height= 0; break; + default: + break; } // If the duration of the mp3 packets is not constant, then they could need a parser -- 2.50.1.windows.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".