OSDN Git Service

huffman: increase bits constant
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 2 Sep 2015 12:22:16 +0000 (14:22 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 3 Sep 2015 11:55:38 +0000 (13:55 +0200)
Bug-ID: ffmpeg ticket 2593

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/huffman.h

index 3e935c0..9b41ad7 100644 (file)
@@ -37,7 +37,7 @@ typedef struct Node {
 
 #define FF_HUFFMAN_FLAG_HNODE_FIRST 0x01
 #define FF_HUFFMAN_FLAG_ZERO_COUNT  0x02
-#define FF_HUFFMAN_BITS 9
+#define FF_HUFFMAN_BITS 10
 
 typedef int (*HuffCmp)(const void *va, const void *vb);
 int ff_huff_build_tree(AVCodecContext *avctx, VLC *vlc, int nb_codes,