Mercurial > libavcodec.hg
comparison aaccoder.c @ 9971:4b6f16da6652 libavcodec
Be sure to increment our position in the coefficient array when skipping a zero
band in the twoloop scalefactor search.
| author | alexc |
|---|---|
| date | Wed, 22 Jul 2009 03:53:30 +0000 |
| parents | cd01ef12809a |
| children | 68f824761c1b |
comparison
equal
deleted
inserted
replaced
| 9970:f7ab24dcb707 | 9971:4b6f16da6652 |
|---|---|
| 675 int bits = 0; | 675 int bits = 0; |
| 676 int cb; | 676 int cb; |
| 677 float mindist = INFINITY; | 677 float mindist = INFINITY; |
| 678 int minbits = 0; | 678 int minbits = 0; |
| 679 | 679 |
| 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]; | |
| 681 continue; | 682 continue; |
| 683 } | |
| 682 minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]); | 684 minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]); |
| 683 for (cb = 0; cb <= ESC_BT; cb++) { | 685 for (cb = 0; cb <= ESC_BT; cb++) { |
| 684 float dist = 0.0f; | 686 float dist = 0.0f; |
| 685 int bb = 0; | 687 int bb = 0; |
| 686 for (w2 = 0; w2 < sce->ics.group_len[w]; w2++) { | 688 for (w2 = 0; w2 < sce->ics.group_len[w]; w2++) { |
