History

When calculating AAC quantized band cost, don't leave garbage in the bit count for the 0 codebook.

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

Alex Converse committed 17 years ago

Commit a5762c91 parent ca0f1e51 file · +2 −0Browse files

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

Unified · Split

libavcodec/aaccoder.c+2−0
@@ -124,6 +124,8 @@ static float quantize_band_cost(struct AACEncContext *s, const float *in, · 123 unmodified lines
124124 if (!cb) {
125125 for (i = 0; i < size; i++)
126126 cost += in[i]*in[i]*lambda;
127+ if (bits)
128+ *bits = 0;
127129 return cost;
128130 }
129131 #ifndef USE_REALLY_FULL_SEARCH

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