Commit 92e0cd79 authored by michael's avatar michael

reduce size of vlc table, thats slightly faster here


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6084 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 810c386d
...@@ -391,7 +391,7 @@ static int decode_init(AVCodecContext * avctx) ...@@ -391,7 +391,7 @@ static int decode_init(AVCodecContext * avctx)
} }
/* XXX: fail test */ /* XXX: fail test */
init_vlc(&huff_vlc[i], 8, 256, init_vlc(&huff_vlc[i], 7, 256,
tmp_bits, 1, 1, tmp_codes, 2, 2, 1); tmp_bits, 1, 1, tmp_codes, 2, 2, 1);
} }
for(i=0;i<2;i++) { for(i=0;i<2;i++) {
...@@ -1705,7 +1705,7 @@ static int huffman_decode(MPADecodeContext *s, GranuleDef *g, ...@@ -1705,7 +1705,7 @@ static int huffman_decode(MPADecodeContext *s, GranuleDef *g,
for(;j>0;j--) { for(;j>0;j--) {
if (get_bits_count(&s->gb) >= end_pos) if (get_bits_count(&s->gb) >= end_pos)
break; break;
y = get_vlc2(&s->gb, vlc->table, 8, 3); y = get_vlc2(&s->gb, vlc->table, 7, 3);
if(!y){ if(!y){
g->sb_hybrid[s_index ] = g->sb_hybrid[s_index ] =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment