[FFmpeg-cvslog] aacdec: Fix an off-by-one overwrite when switching to LTP profile from MAIN .
Alex Converse
git at videolan.org
Thu Dec 13 12:29:39 CET 2012
ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Tue Dec 11 17:26:10 2012 -0800| [6d5b0092678b2a95dfe209a207550bd2fe9ef646] | committer: Alex Converse
aacdec: Fix an off-by-one overwrite when switching to LTP profile from MAIN.
Found-by: pawlkt
CC: libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d5b0092678b2a95dfe209a207550bd2fe9ef646
---
libavcodec/aacdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index f3e9be4..d10a482 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -2003,7 +2003,7 @@ static void apply_tns(float coef[1024], TemporalNoiseShaping *tns,
int w, filt, m, i;
int bottom, top, order, start, end, size, inc;
float lpc[TNS_MAX_ORDER];
- float tmp[TNS_MAX_ORDER];
+ float tmp[TNS_MAX_ORDER + 1];
for (w = 0; w < ics->num_windows; w++) {
bottom = ics->num_swb;
More information about the ffmpeg-cvslog
mailing list