diff vp5.c @ 5821:51918cb97f6f libavcodec

add support for VP6 with huffman encoded blocks closes issue 104
author aurel
date Sun, 14 Oct 2007 22:30:59 +0000
parents 314be1cfdcb0
children 1b91ce6c758c
line wrap: on
line diff
--- a/vp5.c	Sun Oct 14 21:19:40 2007 +0000
+++ b/vp5.c	Sun Oct 14 22:30:59 2007 +0000
@@ -205,7 +205,7 @@
                         s->coeff_ctx[vp56_b6to4[b]][coeff_idx] = 4;
                         idx = vp56_rac_get_tree(c, vp56_pc_tree, model1);
                         sign = vp56_rac_get(c);
-                        coeff = vp56_coeff_bias[idx];
+                        coeff = vp56_coeff_bias[idx+5];
                         for (i=vp56_coeff_bit_length[idx]; i>=0; i--)
                             coeff += vp56_rac_get_prob(c, vp56_coeff_parse_table[idx][i]) << i;
                     } else {