summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-28 20:29:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-28 20:33:56 +0200
commit2b834a0605d9b6acb084ad9d1d9f04a7b4e19168 (patch)
tree085d4df572e918d526204bc30186f5bdf4a1aea9 /libavcodec/fraps.c
parenta63b479d119107db5330239402b388cb399bf116 (diff)
downloadffmpeg-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/fraps.c')
-rw-r--r--libavcodec/fraps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index b6706096cb..8334afcce2 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -94,7 +94,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 */