History

Be sure to increment our position in the coefficient array when skipping a zero band in the twoloop scalefactor search.

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

Alex Converse committed 17 years ago

Commit a62d6cf1 parent 804db442 files · +4 −2Browse files

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

Unified · Split

libavcodec/aaccoder.c+3−1
@@ -677,8 +677,10 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, · 676 unmodified lines
677677 float mindist = INFINITY;
678678 int minbits = 0;
679679
680− if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218)
680+ if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218) {
681+ start += sce->ics.swb_sizes[g];
681682 continue;
683+ }
682684 minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]);
683685 for (cb = 0; cb <= ESC_BT; cb++) {
684686 float dist = 0.0f;

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