diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-28 20:29:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-28 20:33:56 +0200 |
commit | 2b834a0605d9b6acb084ad9d1d9f04a7b4e19168 (patch) | |
tree | 085d4df572e918d526204bc30186f5bdf4a1aea9 /libavcodec/vp6.c | |
parent | a63b479d119107db5330239402b388cb399bf116 (diff) | |
download | ffmpeg-2b834a0605d9b6acb084ad9d1d9f04a7b4e19168.tar.gz |
avcodec/huffman: Allow specifying nb_bits to ff_huff_build_tree()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 cc0ac6c3d7..1a06359c61 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -238,7 +238,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); } |