[FFmpeg-cvslog] proresenc_kostya: 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:01:52 2012 +0200| [d40132dab39ae0fa72025d6b823eaeac805474d2] | committer: Michael Niedermayer
proresenc_kostya: fix encoded mantissa.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d40132dab39ae0fa72025d6b823eaeac805474d2
---
libavcodec/proresenc_kostya.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c
index 86037d3..bcd8e51 100644
--- a/libavcodec/proresenc_kostya.c
+++ b/libavcodec/proresenc_kostya.c
@@ -289,8 +289,7 @@ static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int
exponent = av_log2(val);
put_bits(pb, exponent - exp_order + switch_bits, 0);
- put_bits(pb, 1, 1);
- put_bits(pb, exponent, val);
+ put_bits(pb, exponent + 1, val);
} else {
exponent = val >> rice_order;
More information about the ffmpeg-cvslog
mailing list