aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/huffman.h
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-03-08 17:57:13 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-03-08 17:57:13 +0000
commitbac02ed3c5004f4944cdeb97c4341925196b50d8 (patch)
tree51ef0c506016446ecf69dab94d3fcc0aad8e2e65 /libavcodec/huffman.h
parent409e1d71eaf2897f97f9d95e01079f93cac266ee (diff)
downloadffmpeg-bac02ed3c5004f4944cdeb97c4341925196b50d8.tar.gz
huffman: pass hnode_first as a flag instead of as an argument on its own
Originally committed as revision 12373 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffman.h')
-rw-r--r--libavcodec/huffman.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/huffman.h b/libavcodec/huffman.h
index 57fbefa1e9..0b6ff407b9 100644
--- a/libavcodec/huffman.h
+++ b/libavcodec/huffman.h
@@ -32,8 +32,10 @@ typedef struct {
uint32_t count;
} Node;
+#define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01
+
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, huff_cmp_t cmp, int hnode_first);
+ Node *nodes, huff_cmp_t cmp, int flags);
#endif /* FFMPEG_HUFFMAN_H */