From patchwork Mon Dec 11 01:35:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= X-Patchwork-Id: 45028 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1225:b0:181:818d:5e7f with SMTP id v37csp2651528pzf; Sun, 10 Dec 2023 17:44:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IELwI2D/wZmfc4BUzZlmesXJMJHTtuG/oJsrnqSgW0PTRGe1Ty3KXDZ3ICstPkOEFCr2vqd X-Received: by 2002:a50:bae1:0:b0:54c:61ba:79ff with SMTP id x88-20020a50bae1000000b0054c61ba79ffmr4386228ede.4.1702259094298; Sun, 10 Dec 2023 17:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702259094; cv=none; d=google.com; s=arc-20160816; b=O5fOLIGu4IqPlg1OguCk1L80JpM5kJrGzfb/JWqcYLU63V6laGKaph4BhvWWt4rY1x iQsS2DX3fXQgAZsyq8qA0lpGBMTqvweHmxIvkrJiWQSYkVHjcE7izV8jS5vn4rWIhjak bD94N5/V/VtQBfxJwplw4EArm54j2ci8fNn/nS+niFx+SFISDs+2yOmRjjnBFqmx+EY1 m02DtRH5PEgRh+eFDyrOtCm99VzBFTnzJrmidBr4jZsj9na0d4rqbDsdJxljcp+iCuH9 +vOkAO93Su/YrbvLaldEfX99Nm0vxzObMLnXNTngQ82iNMQDk0eHZwaLdHOFbv0OYNGX SkqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=6m74TM9hyQvTby8QAv0+RxbjrMN/QsYJ99jphLndJds=; fh=Jgo3TCyoG8OdFLqA8BuM7Wbf1w27210JU6p+E8x39/M=; b=sNT/g/MnF4BRahUVMO/f8zmuzL/fhddU3ULw4TLrKiDiGlVyY1MaPUcNVZBYZd+mWc lOYguE6ncbLm6ualbacGOl5z+QqgpkSpHqCUnmTt709bT5DGgdhxgdVj+MYb6alx0Whg 7P0Non1C6EE4UN5QCSFWTSa1CZHAq16xlkn4+fbHgvb0BOV34R3ExWAQLdCkA9OYZy26 lDdwuM8JbD3XbqbpswBOMHgA7ibVY5ZVIImIY5HFqyhl5OtJAxjNtRuBkLMSsQwZ66CI ypPrmFasFA6yjLwmRA8MIeHlnS3QACSV8q5A2ctBZO/EPjrh79DmpUdKGa4biN5eSXMg 6Ycw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@pkh.me header.s=selector1 header.b=UPRYVYKT; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pkh.me Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id d22-20020a50cd56000000b0054c68c86ad2si3091356edj.24.2023.12.10.17.44.53; Sun, 10 Dec 2023 17:44:54 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@pkh.me header.s=selector1 header.b=UPRYVYKT; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pkh.me Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C7C8C68D147; Mon, 11 Dec 2023 03:44:46 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ssq0.pkh.me (laubervilliers-656-1-228-164.w92-154.abo.wanadoo.fr [92.154.28.164]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4B87768D13D for ; Mon, 11 Dec 2023 03:44:40 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pkh.me; s=selector1; t=1702259074; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v7TRIRWPZyRAt5M+QscnM7fgMvlLnB5K6k0iGgO17Q8=; b=UPRYVYKTbcOtj5qEu7iNctlHJlBb0UCRnIXSbWRes7Mir/0ycCoXOgvOY1Lus40exJ7hR1 NNAfdm6oC/ylwffS/wR8npkZnJFLyURNir4/S65Fv4vGzHiFJms/cEJX9VJNEiOjT7u9Fy R8gutCjw94+gJUXGQCq0jZ9xGPzstZI= Received: from localhost (ssq0.pkh.me [local]) by ssq0.pkh.me (OpenSMTPD) with ESMTPA id 4c6aab44; Mon, 11 Dec 2023 01:44:34 +0000 (UTC) From: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 11 Dec 2023 02:35:02 +0100 Message-ID: <20231211014429.1841681-2-u@pkh.me> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231211014429.1841681-1-u@pkh.me> References: <20231211014429.1841681-1-u@pkh.me> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 01/35] avcodec/proresenc_kostya: remove an unnecessary parenthesis level in MAKE_CODE() macro 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: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: C9ummW2XkroE --- libavcodec/proresenc_kostya.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 52fe5639b1..58fc340879 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -429,7 +429,7 @@ static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int } #define GET_SIGN(x) ((x) >> 31) -#define MAKE_CODE(x) ((((x)) * 2) ^ GET_SIGN(x)) +#define MAKE_CODE(x) (((x) * 2) ^ GET_SIGN(x)) static void encode_dcs(PutBitContext *pb, int16_t *blocks, int blocks_per_slice, int scale)