History

all: Remove unused-but-set variables

Newer versions of Clang detect this and emit warnings for it.

Andreas Rheinhardt committed 4 years ago

Commit 01d158d1 parent a4798a58 files · +3 −27Browse files

Showing the changes to libavcodec/aaccoder.c (1 of 8 files). Show all

Unified · Split

libavcodec/aaccoder.c+1−2
@@ -414,11 +414,10 @@ static void search_for_quantizers_fast(AVCodecContext *avctx, AACEncContext *s, · 413 unmodified lines
414414 start = 0;
415415 for (g = 0; g < sce->ics.num_swb; g++) {
416416 int nz = 0;
417− float uplim = 0.0f, energy = 0.0f;
417+ float uplim = 0.0f;
418418 for (w2 = 0; w2 < sce->ics.group_len[w]; w2++) {
419419 FFPsyBand *band = &s->psy.ch[s->cur_channel].psy_bands[(w+w2)*16+g];
420420 uplim += band->threshold;
421− energy += band->energy;
422421 if (band->energy <= band->threshold || band->threshold == 0.0f) {
423422 sce->zeroes[(w+w2)*16+g] = 1;
424423 continue;

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