comparison mpegaudiodec.c @ 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
comparison
equal deleted inserted replaced
3610:d97b4709aaf0 3611:a20d179c79c3
1695 /* read huffcode and compute each couple */ 1695 /* read huffcode and compute each couple */
1696 for(;j>0;j--) { 1696 for(;j>0;j--) {
1697 if (get_bits_count(&s->gb) >= end_pos) 1697 if (get_bits_count(&s->gb) >= end_pos)
1698 break; 1698 break;
1699 y = get_vlc2(&s->gb, vlc->table, 8, 3); 1699 y = get_vlc2(&s->gb, vlc->table, 8, 3);
1700
1701 if(!y){
1702 g->sb_hybrid[s_index ] =
1703 g->sb_hybrid[s_index+1] = 0;
1704 s_index += 2;
1705 continue;
1706 }
1707
1700 x = y >> 4; 1708 x = y >> 4;
1701 y = y & 0x0f; 1709 y = y & 0x0f;
1702 1710
1703 dprintf("region=%d n=%d x=%d y=%d exp=%d\n", 1711 dprintf("region=%d n=%d x=%d y=%d exp=%d\n",
1704 i, g->region_size[i] - j, x, y, exponents[s_index]); 1712 i, g->region_size[i] - j, x, y, exponents[s_index]);