Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PR] avcodec/rangecoder: Fix indentation (PR #21700)
@ 2026-02-09 12:14 mkver via ffmpeg-devel
  0 siblings, 0 replies; only message in thread
From: mkver via ffmpeg-devel @ 2026-02-09 12:14 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: mkver

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-09 12:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-09 12:14 [FFmpeg-devel] [PR] avcodec/rangecoder: Fix indentation (PR #21700) mkver via ffmpeg-devel

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