diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-17 02:14:10 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-17 02:31:20 +0100 |
commit | 3f3be1c07ac0a7aa53b6ce7774c00dc2eb9af6b8 (patch) | |
tree | 4009676d37205e1b4b39755e738f3346cc565ed4 /libavcodec/aacenc.c | |
parent | 2d9b5ae071c089a16140a5fcd65d2aa4f49a7ecf (diff) | |
download | ffmpeg-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.c | 2 |
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) |