diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-08-25 12:26:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-08-25 12:26:34 +0000 |
commit | 1f1d675b68a15dd287a0c996d68a489a8e127e0d (patch) | |
tree | 01c2be67e90e3378c4329f14f2200148fdab61e8 /libavcodec/mpegaudiodec.c | |
parent | 55017f35da511ab1b99b6c19d9731fbe69322cb6 (diff) | |
download | ffmpeg-1f1d675b68a15dd287a0c996d68a489a8e127e0d.tar.gz |
reduce size of vlc table, thats slightly faster here
Originally committed as revision 6084 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 328048645d..d828cca14e 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -391,7 +391,7 @@ static int decode_init(AVCodecContext * avctx) } /* 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 @@ static int huffman_decode(MPADecodeContext *s, GranuleDef *g, 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 ] = |