aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-01-08 20:16:41 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-01-12 15:41:39 +0100
commit0bc1d2fac4d61fc2ca02bfedf0ef256bc3bccb7f (patch)
tree0107f8263d2be5285fb1c2c0fe8c7d85d8cb91e9
parentb239eefeb524460f386252189f873e3e82912e80 (diff)
downloadffmpeg-0bc1d2fac4d61fc2ca02bfedf0ef256bc3bccb7f.tar.gz
avcodec/aac/aacdec: Fix -Wdeclaration-after-statement
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/aac/aacdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aac/aacdec.c b/libavcodec/aac/aacdec.c
index e76392c88d..c0850853b4 100644
--- a/libavcodec/aac/aacdec.c
+++ b/libavcodec/aac/aacdec.c
@@ -1104,13 +1104,13 @@ static av_cold int decode_close(AVCodecContext *avctx)
for (int i = 0; i < 2; i++) {
OutputConfiguration *oc = &ac->oc[i];
- av_channel_layout_uninit(&ac->oc[i].ch_layout);
-
AACUSACConfig *usac = &oc->usac;
for (int j = 0; j < usac->nb_elems; j++) {
AACUsacElemConfig *ec = &usac->elems[j];
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++) {