avcodec/huffman: raise the input capability of ff_huff_gen_len_table() from 8 to 14bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7b41cbac7f
commit
7a8318fbb1
@ -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 (offset = 1; ; offset <<= 1) {
|
||||||
for (i=0; i < size; i++) {
|
for (i=0; i < size; i++) {
|
||||||
h[i].name = 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--)
|
for (i = size / 2 - 1; i >= 0; i--)
|
||||||
heap_sift(h, i, size);
|
heap_sift(h, i, size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user