1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-01-08 20:16:41 +01:00
parent b239eefeb5
commit 0bc1d2fac4

View File

@@ -1104,13 +1104,13 @@ static av_cold int decode_close(AVCodecContext *avctx)
for (int i = 0; i < 2; i++) { for (int i = 0; i < 2; i++) {
OutputConfiguration *oc = &ac->oc[i]; OutputConfiguration *oc = &ac->oc[i];
av_channel_layout_uninit(&ac->oc[i].ch_layout);
AACUSACConfig *usac = &oc->usac; AACUSACConfig *usac = &oc->usac;
for (int j = 0; j < usac->nb_elems; j++) { for (int j = 0; j < usac->nb_elems; j++) {
AACUsacElemConfig *ec = &usac->elems[j]; AACUsacElemConfig *ec = &usac->elems[j];
av_freep(&ec->ext.pl_data); av_freep(&ec->ext.pl_data);
} }
av_channel_layout_uninit(&ac->oc[i].ch_layout);
} }
for (int type = 0; type < FF_ARRAY_ELEMS(ac->che); type++) { for (int type = 0; type < FF_ARRAY_ELEMS(ac->che); type++) {