diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-03-08 21:08:16 +0300 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-03-08 21:08:16 +0300 |
commit | a73cbf9709cb19b4bb4bc778dd5d28cb355fdfde (patch) | |
tree | 1bae8575c55bf5499a96e00a65a9b0c235ce2f62 /libavcodec/fraps.c | |
parent | bac02ed3c5004f4944cdeb97c4341925196b50d8 (diff) |
huffman: add a zero_count flag and use it in fraps
fixes issue349
Originally committed as revision 12374 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 b7db219c99..e70d0aa021 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 (ff_huff_build_tree(s->avctx, &vlc, 256, nodes, huff_cmp, 0) < 0) + if (ff_huff_build_tree(s->avctx, &vlc, 256, nodes, huff_cmp, + FF_HUFFMAN_FLAG_ZERO_COUNT) < 0) return -1; /* we have built Huffman table and are ready to decode plane */ |