[SCM] libav/experimental: AAC: 10l: fix PNS decoding

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:51:40 UTC 2013


The following commit has been merged in the experimental branch:
commit 0cb71412829dfe60421961a19a1deb1a8a52066a
Author: Måns Rullgård <mans at mansr.com>
Date:   Tue Sep 22 19:31:01 2009 +0000

    AAC: 10l: fix PNS decoding
    
    Originally committed as revision 19970 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/aac.c b/libavcodec/aac.c
index d63d99f..0b8922f 100644
--- a/libavcodec/aac.c
+++ b/libavcodec/aac.c
@@ -861,7 +861,7 @@ static int decode_spectrum_and_dequant(AACContext *ac, float coef[1024],
                 for (group = 0; group < ics->group_len[g]; group++) {
                     float scale;
                     float band_energy = 0;
-                    float *cf = coef + group * 128;
+                    float *cf = coef + group * 128 + offsets[i];
                     int len = offsets[i+1] - offsets[i];
 
                     for (k = offsets[i]; k < offsets[i + 1]; k++) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list