diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-09-02 14:22:17 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-09-03 13:55:38 +0200 |
commit | 741d353ab9cb47fe864e60552bf7b9af7aaa735b (patch) | |
tree | 0660a0c72bf99c62f4f375d28f1fae7506eace88 /libavcodec/vp6.c | |
parent | 26960aa1cd865e5dc55c67fb2ff9f0629e4d1bda (diff) | |
download | ffmpeg-741d353ab9cb47fe864e60552bf7b9af7aaa735b.tar.gz |
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.c | 3 |
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); } |