Commit 3f3be1c0 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

aacenc: correctly zero prediction_used array

An oversight, probably because of copy-pasting the TNS line.
parent 2d9b5ae0
...@@ -659,7 +659,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, ...@@ -659,7 +659,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
sce = &cpe->ch[ch]; sce = &cpe->ch[ch];
coeffs[ch] = sce->coeffs; coeffs[ch] = sce->coeffs;
sce->ics.predictor_present = 0; 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)); memset(&sce->tns, 0, sizeof(TemporalNoiseShaping));
for (w = 0; w < 128; w++) for (w = 0; w < 128; w++)
if (sce->band_type[w] > RESERVED_BT) if (sce->band_type[w] > RESERVED_BT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment