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 726B24F546 for ; Fri, 27 Feb 2026 16:17:00 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'idavg5P9nlMPXV7mT3iWpM3S65kBcIH58KNumVrekHg=', expected b'7IQ3qvR8creeoxXphIKwy6p/FZAtK22eq3DfO1l8MO4=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1772209013; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=idavg5P9nlMPXV7mT3iWpM3S65kBcIH58KNumVrekHg=; b=E+qfMOOh8HV+11TglLs+5fYnxzaapbRxUTf5frp94J6Bs3efvnCPoTBGsDCfT8cdf3tqZ JEY4fQtVPyYovsHRHfuhlj+anBeR92b96bv4dY8K8x6TzbOhm55QIu+QvOVK7gc21kavPBw R357BC59i83bNDGEAWn82POvoaW8eYXvytp2DmS7KKgl4yICjGKi4mUWbpU8+6KeoUVWsgR 4LellL7Grp2/luZl5AZBV8KiyvuqMFyCzoyrztH49nev6V6bwipwmRVbpVpU3gIwb7L046O 3l6WbiOsQxV96PDVeNZ3aK0u2Ajb7CDuVXHqY71N2ep8weJLoL9POfLVedLQ== Received: from [172.18.0.3] (unknown [172.18.0.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id D773E6913AD; Fri, 27 Feb 2026 18:16:53 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1772209004; b=MZN6J4D03pnPAjWssUbfJPzZwq1OpXRxjf9PwfXm7fs+xaH+KrCWPIdkMcCfsheRAibm1 YrYcdLJhCIeZ3wIt7zuLK4vKf8aSYWcXNFo+l9mELHByIQZcnwBDb3F6irbr4M0hN8OFBdR jflLkoUG9ZyaPaiVp6h6/BzC09NKYz0s+gv460W9HB3jdynayNWA7GJYYgi8zXhElM9xE+4 u78GBRRdk1iFo/Su7E0gf5wNUaxE5QasLBcFlxAP0DUGN/mXi0ry8L/jckfbSqT91E8IZP6 XXnfl3OiAHlUiv5qE/DCtp216RSp/FDYRSpeJmGpZv0YBVVUwIWMKBJqnUJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1772209004; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=vvdCtntw1/T+ICHCV+Dw9OS6A9Hx05pLeIrjGAVObH4=; b=tZJcMsHRVuMwTaw2PdBZzPMTz1cWVc/Rbvi8PjJP7e0XaxWirfNiF2JirhiDXRaN+E2wJ KnodOCO6fat6vaOcZTNvSPELRh7hIpngHRcQfVIdvqgPd3hZFavRn4yfCI+3gSpd017mOZ4 Lvo39gLEPOMDetky1aP1hzwQkmgk+P9U2B7WPprIW/zw70JuajygT4puAlxdMi9xLWlMt4X aL57CM6El21+exIxkul/unxy3BlIgPuC+XsIQZGB2JmX1BR9Rea8uik/2yg2LnwwR91v34c v7BSFzPpkrLGW8LXfw1/ocjYYApnqISKyDJDrHzURElOpfbsaGOaOe0uWseQ== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1772208996; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=7IQ3qvR8creeoxXphIKwy6p/FZAtK22eq3DfO1l8MO4=; b=a7Z3qafnFa5KTZ3a07gqHbVIwatlMDe2aG4A8EYqUlxiYL6J88ZC4GyQbLNuq52H3VEMd aBObq1JWsGcilw2Lb1kPRJYlHSs4t5O+g+oc1wO3PDz8tuqKW8O2EUUroRGDhAUULzQMlIX pTIPu6lnvnF9yJeGFBh/8VHUHPaI10Hoqa3GyPlI/hGY6kTwPS5QtMVy8FbaDvmT6Slp1bu NmSGVxeo77pLdpy7ndhT2irbGZy/a1JS3/BdNeTD8IEHA1mdcGBM7Tqch3P4f+8Y+Msck7j /U++C7QGKAZ2aa6Lzd9CrkWnov90c9k6p76sRlmvV7+GEtVs1BHqOPcJOOHw== MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Fri, 27 Feb 2026 16:16:35 -0000 Message-ID: <177220899622.25.2577203466212727667@29965ddac10e> Message-ID-Hash: EPTLW46D37Z3D4IZ6FSKWFRIWJWVHJGN X-Message-ID-Hash: EPTLW46D37Z3D4IZ6FSKWFRIWJWVHJGN X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PR] swscale/ops_backend: mark unreachable branch (PR #22315) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Ramiro Polla via ffmpeg-devel Cc: Ramiro Polla Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #22315 opened by Ramiro Polla (ramiro) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22315 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22315.patch The pixel format for the process loops have already been checked at this point to be valid. The switch added in e4abfb8e519 returns AVERROR(EINVAL) in the default case without calling ff_sws_op_chain_free(chain), but there's no need to free it since we mark this branch as unreachable. >>From 652f641e26e99f42be1e0bcfdcc1cbed2a6f3b21 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Fri, 27 Feb 2026 17:07:42 +0100 Subject: [PATCH] swscale/ops_backend: mark unreachable branch The pixel format for the process loops have already been checked at this point to be valid. The switch added in e4abfb8e519 returns AVERROR(EINVAL) in the default case without calling ff_sws_op_chain_free(chain), but there's no need to free it since we mark this branch as unreachable. --- libswscale/ops_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/ops_backend.c b/libswscale/ops_backend.c index cdbc3d2a3d..da16cb40f3 100644 --- a/libswscale/ops_backend.c +++ b/libswscale/ops_backend.c @@ -88,7 +88,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out) case SWS_PIXEL_U16: out->func = process_u16; break; case SWS_PIXEL_U32: out->func = process_u32; break; case SWS_PIXEL_F32: out->func = process_f32; break; - default: return AVERROR(EINVAL); + default: av_unreachable("Invalid pixel type!"); } return 0; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org