History

avcodec/aac/aacdec: Fix -Wdeclaration-after-statement

Andreas Rheinhardt committed 1 year ago

Commit 0bc1d2f1 parent b239eef1 file · +2 −2Browse files

Showing the changes to libavcodec/aac (1 of 1 file). Show all

Unified · Split

libavcodec/aac/aacdec.c+2−2
@@ -1104,13 +1104,13 @@ 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
1109 AACUSACConfig *usac = &oc->usac;1107 AACUSACConfig *usac = &oc->usac;
1110 for (int j = 0; j < usac->nb_elems; j++) {1108 for (int j = 0; j < usac->nb_elems; j++) {
1111 AACUsacElemConfig *ec = &usac->elems[j];1109 AACUsacElemConfig *ec = &usac->elems[j];
1112 av_freep(&ec->ext.pl_data);1110 av_freep(&ec->ext.pl_data);
1113 }1111 }
1112
1113 av_channel_layout_uninit(&ac->oc[i].ch_layout);
1114 }1114 }
1115 1115
1116 for (int type = 0; type < FF_ARRAY_ELEMS(ac->che); type++) {1116 for (int type = 0; type < FF_ARRAY_ELEMS(ac->che); type++) {

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