aacenc_ltp: fix out of bounds memory access
Discovered by Coverity.
This commit is contained in:
parent
4e31176e14
commit
ed08cbd7b1
2 changed files with 2 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ void ff_aac_search_for_ltp(AACEncContext *s, SingleChannelElement *sce,
|
|||
|
||||
if (sce->ics.window_sequence[0] == EIGHT_SHORT_SEQUENCE) {
|
||||
if (sce->ics.ltp.lag) {
|
||||
memset(&sce->lcoeffs[0], 0.0f, 3072*sizeof(sce->lcoeffs[0]));
|
||||
memset(&sce->ltp_state[0], 0, 3072*sizeof(sce->ltp_state[0]));
|
||||
memset(&sce->ics.ltp, 0, sizeof(LongTermPrediction));
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue