aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2023-12-11 02:13:37 +0100
committerClément Bœsch <u@pkh.me>2024-01-10 14:08:00 +0100
commited8692446c7f66f2e68cd298d21a061854ec8429 (patch)
tree84523cfdebb92a6e511971c8f0a5965e80f4f8e6
parente87bc5641ce64df6bd00871ba7ada8a94db90c68 (diff)
downloadffmpeg-ed8692446c7f66f2e68cd298d21a061854ec8429.tar.gz
avcodec/proresenc_anatoliy: cosmetics to make encode_dcs() identical to the one in Kostya encoder
-rw-r--r--libavcodec/proresenc_anatoliy.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index 993fa9831b..7c63d872fc 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -277,17 +277,15 @@ static void encode_dcs(PutBitContext *pb, int16_t *blocks,
blocks += 64;
for (i = 1; i < blocks_per_slice; i++, blocks += 64) {
- dc = (blocks[0] - 0x4000) / scale;
- delta = dc - prev_dc;
- new_sign = GET_SIGN(delta);
- delta = (delta ^ sign) - sign;
- code = MAKE_CODE(delta);
-
+ dc = (blocks[0] - 0x4000) / scale;
+ delta = dc - prev_dc;
+ new_sign = GET_SIGN(delta);
+ delta = (delta ^ sign) - sign;
+ code = MAKE_CODE(delta);
encode_vlc_codeword(pb, ff_prores_dc_codebook[codebook], code);
-
- codebook = FFMIN(code, 6);
- sign = new_sign;
- prev_dc = dc;
+ codebook = FFMIN(code, 6);
+ sign = new_sign;
+ prev_dc = dc;
}
}