mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
proresenc_anatoly: fix encoded mantissa.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e3b7079ddf
commit
dd7d08ee89
@ -169,8 +169,7 @@ static void encode_codeword(PutBitContext *pb, int val, int codebook)
|
|||||||
exp = av_log2(val);
|
exp = av_log2(val);
|
||||||
zeros = exp - exp_order + switch_bits + 1;
|
zeros = exp - exp_order + switch_bits + 1;
|
||||||
put_bits(pb, zeros, 0);
|
put_bits(pb, zeros, 0);
|
||||||
put_bits(pb, 1, 1);
|
put_bits(pb, exp + 1, val);
|
||||||
put_bits(pb, exp, val);
|
|
||||||
} else if (rice_order) {
|
} else if (rice_order) {
|
||||||
mask = (1 << rice_order) - 1;
|
mask = (1 << rice_order) - 1;
|
||||||
put_bits(pb, (val >> rice_order), 0);
|
put_bits(pb, (val >> rice_order), 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user