History

aacenc: Remove unnecessary variables and scopes in the TLS.

Originally committed as revision 23366 to svn://svn.ffmpeg.org/ffmpeg/trunk

Alex Converse committed 16 years ago

Commit 04d6a541 parent 82f1ffc1 file · +3 −11Browse files

Unified · Split

libavcodec/aaccoder.c+3−11
@@ -696,17 +696,13 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, · 695 unmodified lines
696696 const float *scaled = s->scoefs + start;
697697 int bits = 0;
698698 int cb;
699− float mindist = INFINITY;
700− int minbits = 0;
699+ float dist = 0.0f;
701700
702701 if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218) {
703702 start += sce->ics.swb_sizes[g];
704703 continue;
705704 }
706705 minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]);
707− {
708− float dist = 0.0f;
709− int bb = 0;
710706 cb = find_min_book(find_max_val(sce->ics.group_len[w], sce->ics.swb_sizes[g], scaled), sce->sf_idx[w*16+g]);
711707 sce->band_type[w*16+g] = cb;
712708 for (w2 = 0; w2 < sce->ics.group_len[w]; w2++) {
@@ -719,13 +715,9 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, · 6 unmodified lines
719715 lambda,
720716 INFINITY,
721717 &b);
722− bb += b;
718+ bits += b;
723719 }
724− mindist = dist;
725− minbits = bb;
726− }
727− dists[w*16+g] = (mindist - minbits) / lambda;
728− bits = minbits;
720+ dists[w*16+g] = (dist - bits) / lambda;
729721 if (prev != -1) {
730722 bits += ff_aac_scalefactor_bits[sce->sf_idx[w*16+g] - prev + SCALE_DIFF_ZERO];
731723 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t