changeset 3623:d0242f36a793 libavcodec

reduce size of vlc table, thats slightly faster here
author michael
date Fri, 25 Aug 2006 12:26:34 +0000
parents e88a3910f855
children 7d8ef3c542a1
files mpegaudiodec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Fri Aug 25 11:55:20 2006 +0000
+++ b/mpegaudiodec.c	Fri Aug 25 12:26:34 2006 +0000
@@ -391,7 +391,7 @@
             }
 
             /* 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);
         }
         for(i=0;i<2;i++) {
@@ -1705,7 +1705,7 @@
         for(;j>0;j--) {
             if (get_bits_count(&s->gb) >= end_pos)
                 break;
-            y = get_vlc2(&s->gb, vlc->table, 8, 3);
+            y = get_vlc2(&s->gb, vlc->table, 7, 3);
 
             if(!y){
                 g->sb_hybrid[s_index  ] =