Originally committed as revision 23368 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -712,12 +712,12 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, · 711 unmodified lines | |||
| 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 | } |