changeset 5824:6ac956b341f2 libavcodec

Cygwin don't like this function declaration. So move this self-documentation into a comment instead.
author aurel
date Mon, 15 Oct 2007 21:41:01 +0000
parents 4beef9d0e663
children 18859ffa5705
files huffman.c huffman.h
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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 */