summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-13 01:04:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-13 01:30:24 +0100
commit7a8318fbb1f5977ef4f34670c6bf49e937f36f4e (patch)
treee38feecdaf34e7949c26518e8934bc416440c1cd
parent7b41cbac7fc03cfc4714049fbe849cb3f96ffaa5 (diff)
downloadffmpeg-7a8318fbb1f5977ef4f34670c6bf49e937f36f4e.tar.gz
avcodec/huffman: raise the input capability of ff_huff_gen_len_table() from 8 to 14bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/huffman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/huffman.c b/libavcodec/huffman.c
index 73d21ab650..d126e8ba35 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);