[FFmpeg-cvslog] r10743 - in trunk/libavcodec: huffman.c huffman.h

aurel subversion
Mon Oct 15 23:41:01 CEST 2007


Author: aurel
Date: Mon Oct 15 23:41:01 2007
New Revision: 10743

Log:
Cygwin don't like this function declaration.
So move this self-documentation into a comment instead.


Modified:
   trunk/libavcodec/huffman.c
   trunk/libavcodec/huffman.h

Modified: trunk/libavcodec/huffman.c
==============================================================================
--- trunk/libavcodec/huffman.c	(original)
+++ trunk/libavcodec/huffman.c	Mon Oct 15 23:41:01 2007
@@ -60,10 +60,11 @@ static int build_huff_tree(VLC *vlc, Nod
 
 
 /**
+ * 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;

Modified: trunk/libavcodec/huffman.h
==============================================================================
--- trunk/libavcodec/huffman.h	(original)
+++ trunk/libavcodec/huffman.h	Mon Oct 15 23:41:01 2007
@@ -33,6 +33,6 @@ typedef struct {
 
 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 */




More information about the ffmpeg-cvslog mailing list