[FFmpeg-cvslog] search_for_quantizers_faac: fix curband
Michael Niedermayer
git at videolan.org
Thu Jun 7 01:44:25 CEST 2012
ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 6 18:35:05 2012 +0200| [6be8e44c00dcd6d38e697ae6c9f175bae028e468] | committer: Michael Niedermayer
search_for_quantizers_faac: fix curband
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 33775c3507f4e0977d8ef1d8c5cbd167d0429319)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6be8e44c00dcd6d38e697ae6c9f175bae028e468
---
libavcodec/aaccoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index b6fefd3..b48da99 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];
More information about the ffmpeg-cvslog
mailing list