From 33775c3507f4e0977d8ef1d8c5cbd167d0429319 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 6 Jun 2012 18:35:05 +0200 Subject: [PATCH] search_for_quantizers_faac: fix curband Signed-off-by: Michael Niedermayer --- libavcodec/aaccoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];