[FFmpeg-cvslog] avcodec/huffman: raise the input capability of ff_huff_gen_len_table() from 8 to 14bit
Michael Niedermayer
git at videolan.org
Mon Jan 13 01:30:51 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 13 01:04:47 2014 +0100| [7a8318fbb1f5977ef4f34670c6bf49e937f36f4e] | committer: Michael Niedermayer
avcodec/huffman: raise the input capability of ff_huff_gen_len_table() from 8 to 14bit
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7a8318fbb1f5977ef4f34670c6bf49e937f36f4e
---
libavcodec/huffman.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/huffman.c b/libavcodec/huffman.c
index 73d21ab..d126e8b 100644
--- a/libavcodec/huffman.c
+++ b/libavcodec/huffman.c
@@ -68,7 +68,7 @@ int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int size)
for (offset = 1; ; offset <<= 1) {
for (i=0; i < size; i++) {
h[i].name = i;
- h[i].val = (stats[i] << 8) + offset;
+ h[i].val = (stats[i] << 14) + offset;
}
for (i = size / 2 - 1; i >= 0; i--)
heap_sift(h, i, size);
More information about the ffmpeg-cvslog
mailing list