diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-09-02 15:22:17 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-09-03 14:55:38 +0300 |
commit | 741d353ab9cb47fe864e60552bf7b9af7aaa735b (patch) | |
tree | 0660a0c72bf99c62f4f375d28f1fae7506eace88 /libavcodec/fraps.c | |
parent | 26960aa1cd865e5dc55c67fb2ff9f0629e4d1bda (diff) |
huffman: allow specifying nb_bits to ff_huff_build_tree()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r-- | libavcodec/fraps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index d502d3da5a..bd330a3b4e 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -100,7 +100,8 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w, for (i = 0; i < 256; i++) nodes[i].count = bytestream_get_le32(&src); size -= 1024; - if ((ret = ff_huff_build_tree(s->avctx, &vlc, 256, nodes, huff_cmp, + if ((ret = ff_huff_build_tree(s->avctx, &vlc, 256, FF_HUFFMAN_BITS, + nodes, huff_cmp, FF_HUFFMAN_FLAG_ZERO_COUNT)) < 0) return ret; /* we have built Huffman table and are ready to decode plane */ |