Message ID | 20241016194955.3627687-5-michael@niedermayer.cc |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d072:0:b0:48e:c0f8:d0de with SMTP id bj18csp1143072vqb; Wed, 16 Oct 2024 12:50:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWHd7KlWlF/wLnNh42Mwv7gpNlRgZnCZEXMR42X9MhAXvd17NZL7yPfO4rJJKEb7xO0GjK5WEcTVSpIHwq3Br3F@gmail.com X-Google-Smtp-Source: AGHT+IEWU6J87oM2qVBvvHZFJXtejEyylAeuNZJaREGKU8o96MvI2EkH9GKmycUSlObm9/fmjqL2 X-Received: by 2002:a05:6402:4404:b0:5c9:8979:dc87 with SMTP id 4fb4d7f45d1cf-5c98979dd5amr11219910a12.8.1729108249172; Wed, 16 Oct 2024 12:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729108249; cv=none; d=google.com; s=arc-20240605; b=G/Ztx4t1N/cuUDxxRU4RS6SG4XIVNCofvq9qU3WnlYqvZI9D5+YtGyzfOqeQyd5KJE 6ymRcuQW3/squFPKMtFNXb8NO4Bcmc3PtlItj88m9aBw9myBR1NzbZacw3tyE39Rwp8I ByPuKfeYKic+MIpNNDt8y4RXwJDxPfrkacY7eThmYxyeMt9V6jQoTM2Hdcb7fxUF97Ej 4t5502Z1w8TDgQL97/9FOqcpKPrJdl/dsKeV5F8vLnxBQ1uIqoww4OBW1Wz1rSTx/xxu e6JjtA/usFUHIlmXz9sOjof3ZuleAvejpO+cIkf4q1UoADQ/F1Cyi8toi3g4jfR8J13t hBLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding: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=xfKjLnkSjyaztG/XCcr6X/rr79ZyMgYYlheMFhR+xdM=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=HZ2jtAg25DLQupI/dY+V4DhfdmY7wz3qO+KDvCeKWtOseQmsrsviqt1gloDzNzIKgx MzGJH67BmjOU7bGqw8Y75UQJQeqFefiLn4ioxo8fekQ9+iG2JVA0KoG9CqgwWiZsYcpT xnpWVIDzYKdJbxbG53DtOpVy17hZncz50IjvLZSuwbI/W/VAkBkbmADeMDAm4vKxW0is /5FUsgJqrO5fyIHOn1AXcBK0nT60UMVxpFypy8U+2qn0JB8wCdMkZmkNxAIX2YwVVnYr UsGRopilVGKvztSVv2qSUHHj30ypd8tSQslVAhOxAcZSoLQ9xiqWzlHlrV+kz+JcmmsE r0DA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=hQhvcXFy; 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 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-5c98d88f7fesi3110807a12.687.2024.10.16.12.50.48; Wed, 16 Oct 2024 12:50:49 -0700 (PDT) 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=@niedermayer.cc header.s=gm1 header.b=hQhvcXFy; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 37F9F68E38B; Wed, 16 Oct 2024 22:50:08 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8F4F768E385 for <ffmpeg-devel@ffmpeg.org>; Wed, 16 Oct 2024 22:50:00 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id EEC65240006 for <ffmpeg-devel@ffmpeg.org>; Wed, 16 Oct 2024 19:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1729108200; 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=6acHutpjfp4Cwdx6lMVzXQUAyd8qlz0uEkuMhDpJ6/g=; b=hQhvcXFyqzG9h/JjmGZSER0evr/kuTuEK7stwOkDKaXOoy6f6XkvzDbswsketpCUpJn7pr FT49iWq8UeRTJoTki9PkZ174r50ogAKxfJEeJuhtjNiByi9IKiRuakBsbLgAkRcptDCAi+ Z8OkmYzXAMbPwn5b9N0geHXH8VAtaARSeTfaM/hB++uOTIxQ2z7l2M9OVyWvfjXpvls2FP t8ZaK6ldQspIs1aSdSgpEPvbBYco7GbgX/8VyZKEGZJHCWt6BF//2fE5e86K86xdKIQgnh Bm3Q+9Rbc9m9rKA6xxOPCsiG7w3TR9QOgo+teWWy27KjcIvs8EI+uwWIxOS9cQ== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Wed, 16 Oct 2024 21:49:52 +0200 Message-ID: <20241016194955.3627687-5-michael@niedermayer.cc> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241016194955.3627687-1-michael@niedermayer.cc> References: <20241016194955.3627687-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 5/8] avcodec/rangecoder: Remove unneeded outstanding byte mask X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: rUrFmigz1xcX |
Series |
[FFmpeg-devel,1/8] avcodec/rangecoder: only perform renorm check/loop for callers that need it
|
expand
|
diff --git a/libavcodec/rangecoder.h b/libavcodec/rangecoder.h index 944ad492fda..cdd99eff565 100644 --- a/libavcodec/rangecoder.h +++ b/libavcodec/rangecoder.h @@ -72,7 +72,7 @@ static inline void renorm_encoder(RangeCoder *c) *c->bytestream++ = c->outstanding_byte + 1; for (; c->outstanding_count; c->outstanding_count--) *c->bytestream++ = 0x00; - c->outstanding_byte = (c->low >> 8) & 0xFF; + c->outstanding_byte = c->low >> 8; } else { c->outstanding_count++; }
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/rangecoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)