diff options
author | Alex Converse <alex.converse@gmail.com> | 2009-07-22 03:53:30 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2009-07-22 03:53:30 +0000 |
commit | a62d6cfeff1b5f220ec6d0e545d039f9361674fb (patch) | |
tree | 37237d55069ec6afce6c846fd6b5f78338aff5c3 /libavcodec/aaccoder.c | |
parent | 804db4466df4d139a4985df786787263e16540e1 (diff) | |
download | ffmpeg-a62d6cfeff1b5f220ec6d0e545d039f9361674fb.tar.gz |
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
Diffstat (limited to 'libavcodec/aaccoder.c')
-rw-r--r-- | libavcodec/aaccoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index f2982584d4..be954dd9f8 100644 --- a/libavcodec/aaccoder.c +++ b/libavcodec/aaccoder.c @@ -677,8 +677,10 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, float mindist = INFINITY; int minbits = 0; - if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218) + if (sce->zeroes[w*16+g] || sce->sf_idx[w*16+g] >= 218) { + start += sce->ics.swb_sizes[g]; continue; + } minscaler = FFMIN(minscaler, sce->sf_idx[w*16+g]); for (cb = 0; cb <= ESC_BT; cb++) { float dist = 0.0f; |