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 15A5749B2B for ; Mon, 3 Jun 2024 02:16:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0FDC668D685; Mon, 3 Jun 2024 05:15:38 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 78E0768D671 for ; Mon, 3 Jun 2024 05:15:31 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id CAB941C0002 for ; Mon, 3 Jun 2024 02:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1717380931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BbU7k+kx/Brh4ULahFcFcLnrMzQG57xV/1Aa/SOQ/xU=; b=okFVXgU1+CNDXDJvoL0b7TA1chVMQoovl0RM7vtvxvDZFE8NJM3cP5hS4Lz+pbz4FjxFhm OD5SUWCP6rqTHum6IBUilt8znGHk8czENxLM7/zwnG25s2Zbpu2Q4hsRuezxHYL7ZXw7a7 g53EZYNwHKpt9xfBhrD8SIZAOmmtDoAIgwrCqvAEkZ15E/iIcLplzOCMc34+XXdjzTbo0F 9zDVYpYC5A4zCKuy9CGCeqskaue8u4YAiLAvcCmDTQzR5XDemDDeLhmQaiQ+6cvGO5WrkW DebQMGf6dTn6HaNPpfFhr9oAPT2zMVUUrF/Nctj8Cb6X5VYFs9b9FF9W0/owfQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 3 Jun 2024 04:15:21 +0200 Message-ID: <20240603021526.2372698-4-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240603021526.2372698-1-michael@niedermayer.cc> References: <20240603021526.2372698-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 4/9] avformat/img2dec: Move DQT after unrelated if() 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 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: Fixes: CID1494636 Missing break in switch Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/img2dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index a40675d4341..f8c1c0f3136 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -794,7 +794,6 @@ static int jpeg_probe(const AVProbeData *p) return 0; state = EOI; break; - case DQT: case APP0: if (AV_RL32(&b[i + 4]) == MKTAG('J','F','I','F')) got_header = 1; @@ -815,6 +814,7 @@ static int jpeg_probe(const AVProbeData *p) case APP13: case APP14: case APP15: + case DQT: /* fallthrough */ case COM: i += AV_RB16(&b[i + 2]) + 1; break; -- 2.45.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".