Mercurial > libavcodec.hg
diff fraps.c @ 6473:e0cd9697ac6d libavcodec
huffman: add a zero_count flag and use it in fraps
fixes issue349
author | aurel |
---|---|
date | Sat, 08 Mar 2008 18:08:16 +0000 |
parents | 3356be010cfe |
children | e9aa4dc2d937 |
line wrap: on
line diff
--- a/fraps.c Sat Mar 08 17:57:13 2008 +0000 +++ b/fraps.c Sat Mar 08 18:08:16 2008 +0000 @@ -94,7 +94,8 @@ 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 */