summaryrefslogtreecommitdiff
path: root/libavcodec/vp6.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-09-02 14:22:17 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-09-03 13:55:38 +0200
commit741d353ab9cb47fe864e60552bf7b9af7aaa735b (patch)
tree0660a0c72bf99c62f4f375d28f1fae7506eace88 /libavcodec/vp6.c
parent26960aa1cd865e5dc55c67fb2ff9f0629e4d1bda (diff)
huffman: allow specifying nb_bits to ff_huff_build_tree()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r--libavcodec/vp6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c
index 5026c2a7ba..c48c2b8180 100644
--- a/libavcodec/vp6.c
+++ b/libavcodec/vp6.c
@@ -252,7 +252,8 @@ static int vp6_build_huff_tree(VP56Context *s, uint8_t coeff_model[],
ff_free_vlc(vlc);
/* then build the huffman tree according to probabilities */
- return ff_huff_build_tree(s->avctx, vlc, size, nodes, vp6_huff_cmp,
+ return ff_huff_build_tree(s->avctx, vlc, size, FF_HUFFMAN_BITS,
+ nodes, vp6_huff_cmp,
FF_HUFFMAN_FLAG_HNODE_FIRST);
}