[FFmpeg-cvslog] aacenc: correctly zero prediction_used array

Rostislav Pehlivanov git at videolan.org
Sat Oct 17 03:31:46 CEST 2015


ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Sat Oct 17 02:14:10 2015 +0100| [3f3be1c07ac0a7aa53b6ce7774c00dc2eb9af6b8] | committer: Rostislav Pehlivanov

aacenc: correctly zero prediction_used array

An oversight, probably because of copy-pasting the TNS line.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f3be1c07ac0a7aa53b6ce7774c00dc2eb9af6b8
---

 libavcodec/aacenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index fca5b0e..546d4f5 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -659,7 +659,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
                 sce = &cpe->ch[ch];
                 coeffs[ch] = sce->coeffs;
                 sce->ics.predictor_present = 0;
-                memset(&sce->ics.prediction_used, 0, sizeof(sce->ics.prediction_used));
+                memset(sce->ics.prediction_used, 0, sizeof(sce->ics.prediction_used));
                 memset(&sce->tns, 0, sizeof(TemporalNoiseShaping));
                 for (w = 0; w < 128; w++)
                     if (sce->band_type[w] > RESERVED_BT)



More information about the ffmpeg-cvslog mailing list