Skip to content

Commit 0bc1d2f

Browse files
committed
avcodec/aac/aacdec: Fix -Wdeclaration-after-statement
Signed-off-by: Andreas Rheinhardt <[email protected]>
1 parent b239eef commit 0bc1d2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavcodec/aac/aacdec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,13 +1104,13 @@ static av_cold int decode_close(AVCodecContext *avctx)
11041104

11051105
for (int i = 0; i < 2; i++) {
11061106
OutputConfiguration *oc = &ac->oc[i];
1107-
av_channel_layout_uninit(&ac->oc[i].ch_layout);
1108-
11091107
AACUSACConfig *usac = &oc->usac;
11101108
for (int j = 0; j < usac->nb_elems; j++) {
11111109
AACUsacElemConfig *ec = &usac->elems[j];
11121110
av_freep(&ec->ext.pl_data);
11131111
}
1112+
1113+
av_channel_layout_uninit(&ac->oc[i].ch_layout);
11141114
}
11151115

11161116
for (int type = 0; type < FF_ARRAY_ELEMS(ac->che); type++) {

0 commit comments

Comments
 (0)