# HG changeset patch # User aurel # Date 1192484461 0 # Node ID 6ac956b341f2c8a9b81c0897869be448a6506c01 # Parent 4beef9d0e663522195d13c880a7fdda54db4f94c Cygwin don't like this function declaration. So move this self-documentation into a comment instead. diff -r 4beef9d0e663 -r 6ac956b341f2 huffman.c --- a/huffman.c Mon Oct 15 16:26:02 2007 +0000 +++ b/huffman.c Mon Oct 15 21:41:01 2007 +0000 @@ -60,10 +60,11 @@ /** + * nodes size must be 2*nb_codes * first nb_codes nodes.count must be set */ int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, - Node nodes[2*nb_codes], huff_cmp_t cmp, int hnode_first) + Node *nodes, huff_cmp_t cmp, int hnode_first) { int i, j; int cur_node; diff -r 4beef9d0e663 -r 6ac956b341f2 huffman.h --- a/huffman.h Mon Oct 15 16:26:02 2007 +0000 +++ b/huffman.h Mon Oct 15 21:41:01 2007 +0000 @@ -33,6 +33,6 @@ typedef int (*huff_cmp_t)(const void *va, const void *vb); int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes, - Node nodes[2*nb_codes], huff_cmp_t cmp, int hnode_first); + Node *nodes, huff_cmp_t cmp, int hnode_first); #endif /* AVCODEC_HUFFMAN_H */