Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: mkver via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: mkver <code@ffmpeg.org>
Subject: [FFmpeg-devel] [PR] avcodec/rangecoder: Fix indentation (PR #21700)
Date: Mon, 09 Feb 2026 12:14:54 -0000
Message-ID: <177063929503.25.8043440054095608745@4457048688e7> (raw)

PR #21700 opened by mkver
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21700
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21700.patch

Forgotten after 832649986c2bd20943e9983d452ff28c50e6a180
and d147b3d7ecba2bd40cb45284f920238da97a95ee.


>From 0cb45347f7d8d9f27e0f9d50304c016b8730c16c Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Date: Mon, 9 Feb 2026 13:13:37 +0100
Subject: [PATCH] avcodec/rangecoder: Fix indentation

Forgotten after 832649986c2bd20943e9983d452ff28c50e6a180
and d147b3d7ecba2bd40cb45284f920238da97a95ee.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/rangecoder.h | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/libavcodec/rangecoder.h b/libavcodec/rangecoder.h
index 15217a99a3..ee2dba95f2 100644
--- a/libavcodec/rangecoder.h
+++ b/libavcodec/rangecoder.h
@@ -61,19 +61,19 @@ void ff_build_rac_states(RangeCoder *c, int factor, int max_p);
 
 static inline void renorm_encoder(RangeCoder *c)
 {
-        if (c->low - 0xFF01 >= 0x10000 - 0xFF01U) {
-            int mask = c->low - 0xFF01 >> 31;
-            *c->bytestream = c->outstanding_byte + 1 + mask;
-            c->bytestream += c->outstanding_byte >= 0;
-            for (; c->outstanding_count; c->outstanding_count--)
-                *c->bytestream++ = mask;
-            c->outstanding_byte = c->low >> 8;
-        } else {
-            c->outstanding_count++;
-        }
+    if (c->low - 0xFF01 >= 0x10000 - 0xFF01U) {
+        int mask = c->low - 0xFF01 >> 31;
+        *c->bytestream = c->outstanding_byte + 1 + mask;
+        c->bytestream += c->outstanding_byte >= 0;
+        for (; c->outstanding_count; c->outstanding_count--)
+            *c->bytestream++ = mask;
+        c->outstanding_byte = c->low >> 8;
+    } else {
+        c->outstanding_count++;
+    }
 
-        c->low     = (c->low & 0xFF) << 8;
-        c->range <<= 8;
+    c->low     = (c->low & 0xFF) << 8;
+    c->range <<= 8;
 }
 
 static inline int get_rac_count(RangeCoder *c)
@@ -106,13 +106,13 @@ static inline void put_rac(RangeCoder *c, uint8_t *const state, int bit)
 
 static inline void refill(RangeCoder *c)
 {
-        c->range <<= 8;
-        c->low   <<= 8;
-        if (c->bytestream < c->bytestream_end) {
-            c->low += c->bytestream[0];
-            c->bytestream++;
-        } else
-            c->overread ++;
+    c->range <<= 8;
+    c->low   <<= 8;
+    if (c->bytestream < c->bytestream_end) {
+        c->low += c->bytestream[0];
+        c->bytestream++;
+    } else
+        c->overread ++;
 }
 
 static inline int get_rac(RangeCoder *c, uint8_t *const state)
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

                 reply	other threads:[~2026-02-09 12:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=177063929503.25.8043440054095608745@4457048688e7 \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=code@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git