History

avcodec/aac/aacdec: Free channel layout

Fixes: 371445194/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5981081124274176 Fixes: memleak

Michael Niedermayer committed 1 year ago

Commit ae81beb1 parent d1d9b081 file · +2 −0Browse files

Unified · Split

libavcodec/aac/aacdec.c+2−0
@@ -1104,6 +1104,8 @@ static av_cold int decode_close(AVCodecContext *avctx) · 1103 unmodified lines
1104 1104
1105 for (int i = 0; i < 2; i++) {1105 for (int i = 0; i < 2; i++) {
1106 OutputConfiguration *oc = &ac->oc[i];1106 OutputConfiguration *oc = &ac->oc[i];
1107 av_channel_layout_uninit(&ac->oc[i].ch_layout);
1108
1107 AACUSACConfig *usac = &oc->usac;1109 AACUSACConfig *usac = &oc->usac;
1108 for (int j = 0; j < usac->nb_elems; j++) {1110 for (int j = 0; j < usac->nb_elems; j++) {
1109 AACUsacElemConfig *ec = &usac->elems[j];1111 AACUsacElemConfig *ec = &usac->elems[j];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t