Mercurial > libavcodec.hg
comparison ac3dec.c @ 5477:ec1f268792cd libavcodec
cosmetics: indentation
author | jbr |
---|---|
date | Sat, 04 Aug 2007 20:32:57 +0000 |
parents | e50f0d583a36 |
children | 943c732c905d |
comparison
equal
deleted
inserted
replaced
5476:e50f0d583a36 | 5477:ec1f268792cd |
---|---|
425 int i, gcode, tbap, start, end; | 425 int i, gcode, tbap, start, end; |
426 uint8_t *exps; | 426 uint8_t *exps; |
427 uint8_t *bap; | 427 uint8_t *bap; |
428 float *coeffs; | 428 float *coeffs; |
429 | 429 |
430 exps = ctx->dexps[ch_index]; | 430 exps = ctx->dexps[ch_index]; |
431 bap = ctx->bap[ch_index]; | 431 bap = ctx->bap[ch_index]; |
432 coeffs = ctx->transform_coeffs[ch_index]; | 432 coeffs = ctx->transform_coeffs[ch_index]; |
433 start = ctx->startmant[ch_index]; | 433 start = ctx->startmant[ch_index]; |
434 end = ctx->endmant[ch_index]; | 434 end = ctx->endmant[ch_index]; |
435 | 435 |
436 | 436 |
437 for (i = start; i < end; i++) { | 437 for (i = start; i < end; i++) { |
438 tbap = bap[i]; | 438 tbap = bap[i]; |
439 switch (tbap) { | 439 switch (tbap) { |
811 if(ch == CPL_CH) | 811 if(ch == CPL_CH) |
812 ngrps = (ctx->endmant[ch] - ctx->startmant[ch]) / grpsize; | 812 ngrps = (ctx->endmant[ch] - ctx->startmant[ch]) / grpsize; |
813 else if(ch == ctx->lfe_ch) | 813 else if(ch == ctx->lfe_ch) |
814 ngrps = 2; | 814 ngrps = 2; |
815 else | 815 else |
816 ngrps = (ctx->endmant[ch] + grpsize - 4) / grpsize; | 816 ngrps = (ctx->endmant[ch] + grpsize - 4) / grpsize; |
817 ctx->dexps[ch][0] = get_bits(gb, 4) << !ch; | 817 ctx->dexps[ch][0] = get_bits(gb, 4) << !ch; |
818 decode_exponents(gb, ctx->expstr[ch], ngrps, ctx->dexps[ch][0], | 818 decode_exponents(gb, ctx->expstr[ch], ngrps, ctx->dexps[ch][0], |
819 &ctx->dexps[ch][ctx->startmant[ch]+!!ch]); | 819 &ctx->dexps[ch][ctx->startmant[ch]+!!ch]); |
820 if(ch != CPL_CH && ch != ctx->lfe_ch) | 820 if(ch != CPL_CH && ch != ctx->lfe_ch) |
821 skip_bits(gb, 2); /* skip gainrng */ | 821 skip_bits(gb, 2); /* skip gainrng */ |
822 } | 822 } |
823 } | 823 } |
824 | 824 |
825 if (get_bits1(gb)) { /* bit allocation information */ | 825 if (get_bits1(gb)) { /* bit allocation information */ |
826 ctx->bit_alloc_params.sdecay = ff_sdecaytab[get_bits(gb, 2)]; | 826 ctx->bit_alloc_params.sdecay = ff_sdecaytab[get_bits(gb, 2)]; |