From 90050e73927ce1aa07f9c2ce61dfbbb68201e219 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Fri, 18 May 2007 11:01:08 +0400 Subject: dca: fix dca_bitalloc_index decoder init One of Huffman codes used in dca_bitalloc_index has 10-bit codes, but the decode table is built only for 9 bits, therefore the .wrap field must be set to 2 for correct decoding. Signed-off-by: Sergey Vlasov --- libavcodec/dca.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/dca.c b/libavcodec/dca.c index 4f83705..86a9bfc 100644 --- a/libavcodec/dca.c +++ b/libavcodec/dca.c @@ -186,7 +186,7 @@ static void dca_init_vlcs(void) return; dca_bitalloc_index.offset = 1; - dca_bitalloc_index.wrap = 1; + dca_bitalloc_index.wrap = 2; for (i = 0; i < 5; i++) init_vlc(&dca_bitalloc_index.vlc[i], bitalloc_12_vlc_bits[i], 12, bitalloc_12_bits[i], 1, 1, -- 1.5.2.47.g4fe5