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 DF2DF4B7CC for ; Wed, 23 Jul 2025 02:51:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 5ED0468D287; Wed, 23 Jul 2025 05:51:54 +0300 (EEST) Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id F1ABB68CEF7 for ; Wed, 23 Jul 2025 05:51:46 +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=Ip 2Sh7jj5hNa0vaNGrpWBKvKBHOUPRAQGSbPNsd9/P8=; b=cDFpkkKpeUynhEKVk4 40iAR4qF0bfW5Fp6H5VdhRXJC/FOrNEe387M9CqrzuxqPncs8JnPZoHPaiM9VSq4 MG54eICTjIpiki3gbZLS1/UPVwi3kgJmoss8TVYvnanM9EVaCtcsPij/VXRkOzI2 1vF+xEyqHUzxOYH1IOk31afII= Received: from 6308325SC00857 (unknown []) by gzga-smtp-mtada-g0-4 (Coremail) with SMTP id _____wDHwrY7ToBoiqh5Gw--.62448S2; Wed, 23 Jul 2025 10:51:41 +0800 (CST) From: zhaozhenghang <15083277223@163.com> To: ffmpeg-devel@ffmpeg.org Date: Wed, 23 Jul 2025 10:51:37 +0800 Message-ID: <20250723025137.214-1-15083277223@163.com> X-Mailer: git-send-email 2.50.1.windows.1 MIME-Version: 1.0 X-CM-TRANSID: _____wDHwrY7ToBoiqh5Gw--.62448S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gr43urWkKr13Ar15GF1UGFg_yoWkWrgEkF 18CF1UXFWjkFsxZa1jkrW8Kr1kXr93Cr1rG3ZFqr4kAFZ2qrnxJa9rGw1fXFykWF9rCF4f Za18AF9xCr1YgjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sREJ3ktUUUUU== X-Originating-IP: [120.92.67.69] X-CM-SenderInfo: bprvimitsxljist6il2tof0z/1tbiPQ6TjmiATWcUWQAAsh Subject: [FFmpeg-devel] [PATCH v2] libavformat/mov.c : rm '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: remove the conditional compilation inside the switch to avoid warnings. Signed-off-by: zhaozhenghang <15083277223@163.com> --- libavformat/mov.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 4a4641d51b..5307e9d6a5 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5222,22 +5222,16 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom) return ret; } -#if CONFIG_H261_DECODER || CONFIG_H263_DECODER || CONFIG_MPEG4_DECODER 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; } -#endif // If the duration of the mp3 packets is not constant, then they could need a parser if (st->codecpar->codec_id == AV_CODEC_ID_MP3 && sc->time_scale == st->codecpar->sample_rate) { -- 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".