[FFmpeg-cvslog] proresenc_anatoly: fix encoded mantissa.
Michael Niedermayer
git at videolan.org
Sat Apr 7 11:27:49 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Apr 7 11:00:00 2012 +0200| [dd7d08ee89207ddcf83302d8e9eebdd6f796f6f4] | committer: Michael Niedermayer
proresenc_anatoly: fix encoded mantissa.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd7d08ee89207ddcf83302d8e9eebdd6f796f6f4
---
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 d35909b..191cf5a 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);
More information about the ffmpeg-cvslog
mailing list