aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacenc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2015-10-17 02:14:10 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-10-17 02:31:20 +0100
commit3f3be1c07ac0a7aa53b6ce7774c00dc2eb9af6b8 (patch)
tree4009676d37205e1b4b39755e738f3346cc565ed4 /libavcodec/aacenc.c
parent2d9b5ae071c089a16140a5fcd65d2aa4f49a7ecf (diff)
downloadffmpeg-3f3be1c07ac0a7aa53b6ce7774c00dc2eb9af6b8.tar.gz
aacenc: correctly zero prediction_used array
An oversight, probably because of copy-pasting the TNS line.
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r--libavcodec/aacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index fca5b0e0ea..546d4f53da 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)