Mercurial > libavcodec.hg
changeset 3611:a20d179c79c3 libavcodec
faster handling of zero coeffs in the low freq decode
author | michael |
---|---|
date | Thu, 24 Aug 2006 01:12:26 +0000 |
parents | d97b4709aaf0 |
children | 9283f094680e |
files | mpegaudiodec.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegaudiodec.c Thu Aug 24 01:01:39 2006 +0000 +++ b/mpegaudiodec.c Thu Aug 24 01:12:26 2006 +0000 @@ -1697,6 +1697,14 @@ if (get_bits_count(&s->gb) >= end_pos) break; y = get_vlc2(&s->gb, vlc->table, 8, 3); + + if(!y){ + g->sb_hybrid[s_index ] = + g->sb_hybrid[s_index+1] = 0; + s_index += 2; + continue; + } + x = y >> 4; y = y & 0x0f;