Mercurial > libavcodec.hg
comparison aaccoder.c @ 11794:233b2faac076 libavcodec
aacenc: Remove an unnecessary division from the TLS.
author | alexc |
---|---|
date | Fri, 28 May 2010 21:29:56 +0000 |
parents | 9a13275c05c4 |
children | 081702713f47 |
comparison
equal
deleted
inserted
replaced
11793:9a13275c05c4 | 11794:233b2faac076 |
---|---|
710 dist += quantize_band_cost(s, coefs + w2*128, | 710 dist += quantize_band_cost(s, coefs + w2*128, |
711 scaled + w2*128, | 711 scaled + w2*128, |
712 sce->ics.swb_sizes[g], | 712 sce->ics.swb_sizes[g], |
713 sce->sf_idx[w*16+g], | 713 sce->sf_idx[w*16+g], |
714 cb, | 714 cb, |
715 lambda, | 715 1.0f, |
716 INFINITY, | 716 INFINITY, |
717 &b); | 717 &b); |
718 bits += b; | 718 bits += b; |
719 } | 719 } |
720 dists[w*16+g] = (dist - bits) / lambda; | 720 dists[w*16+g] = dist - bits; |
721 if (prev != -1) { | 721 if (prev != -1) { |
722 bits += ff_aac_scalefactor_bits[sce->sf_idx[w*16+g] - prev + SCALE_DIFF_ZERO]; | 722 bits += ff_aac_scalefactor_bits[sce->sf_idx[w*16+g] - prev + SCALE_DIFF_ZERO]; |
723 } | 723 } |
724 tbits += bits; | 724 tbits += bits; |
725 start += sce->ics.swb_sizes[g]; | 725 start += sce->ics.swb_sizes[g]; |