aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-07 11:00:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-07 11:00:00 +0200
commitdd7d08ee89207ddcf83302d8e9eebdd6f796f6f4 (patch)
tree6b719888f2dda4e5895f84a6c1ab55161a78f43e /libavcodec
parente3b7079ddf8322577e1d1f9ef762e96c2b0ad923 (diff)
downloadffmpeg-dd7d08ee89207ddcf83302d8e9eebdd6f796f6f4.tar.gz
proresenc_anatoly: fix encoded mantissa.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/proresenc_anatoliy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index d35909bcf0..191cf5a3d0 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -169,8 +169,7 @@ static void encode_codeword(PutBitContext *pb, int val, int codebook)
exp = av_log2(val);
zeros = exp - exp_order + switch_bits + 1;
put_bits(pb, zeros, 0);
- put_bits(pb, 1, 1);
- put_bits(pb, exp, val);
+ put_bits(pb, exp + 1, val);
} else if (rice_order) {
mask = (1 << rice_order) - 1;
put_bits(pb, (val >> rice_order), 0);