diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-06 18:35:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-07 00:55:26 +0200 |
commit | 6be8e44c00dcd6d38e697ae6c9f175bae028e468 (patch) | |
tree | 338033783c6c2925a19014ec3fd81b687ba978fb | |
parent | 565581b0a4e89e2633bef868d9db52bd999122d0 (diff) | |
download | ffmpeg-6be8e44c00dcd6d38e697ae6c9f175bae028e468.tar.gz |
search_for_quantizers_faac: fix curband
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 33775c3507f4e0977d8ef1d8c5cbd167d0429319)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/aaccoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index b6fefd3e62..b48da99ef1 100644 --- a/libavcodec/aaccoder.c +++ b/libavcodec/aaccoder.c @@ -878,7 +878,7 @@ static void search_for_quantizers_faac(AVCodecContext *avctx, AACEncContext *s, } else { for (w = 0; w < 8; w++) { const float *coeffs = sce->coeffs + w*128; - start = 0; + curband = start = 0; for (i = 0; i < 128; i++) { if (i - start >= sce->ics.swb_sizes[curband]) { start += sce->ics.swb_sizes[curband]; |