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 <[email protected]> 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 <[email protected]> --- 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 -- [email protected] To unsubscribe send an email to [email protected]
