diff options
author | Clément Bœsch <u@pkh.me> | 2023-12-11 01:59:18 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2024-01-10 14:08:00 +0100 |
commit | d269f841995b9ecc5d169090841c7541c18a9bb4 (patch) | |
tree | d95ccad23febe22781859e77921d1c40ae13e6f9 /libavcodec | |
parent | 9c7f6d89fdff7f9fc6f36f6f86b657092dafff92 (diff) | |
download | ffmpeg-d269f841995b9ecc5d169090841c7541c18a9bb4.tar.gz |
avcodec/proresenc_anatoliy: remove IS_NEGATIVE() macro
This makes the function closer to encode_acs() in proresenc_kostya.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/proresenc_anatoliy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 5a63620b18..ea7046ae71 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -257,7 +257,6 @@ static void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int val) #define GET_SIGN(x) ((x) >> 31) #define TO_GOLOMB(val) (((val) * 2) ^ GET_SIGN(val)) -#define IS_NEGATIVE(val) ((GET_SIGN(val) ^ -1) + 1) #define TO_GOLOMB2(val,sign) ((val)==0 ? 0 : ((val) << 1) + (sign)) static av_always_inline int get_level(int val) @@ -318,7 +317,7 @@ static void encode_ac_coeffs(PutBitContext *pb, prev_level = level; - put_bits(pb, 1, IS_NEGATIVE(val)); + put_sbits(pb, 1, GET_SIGN(val)); } else { ++run; } |