Unified · Split
| @@ -1104,13 +1104,13 @@ static av_cold int decode_close(AVCodecContext *avctx) · 1103 unmodified lines | ||
| 1104 | 1104 | |
| 1105 | 1105 | for (int i = 0; i < 2; i++) { |
| 1106 | 1106 | OutputConfiguration *oc = &ac->oc[i]; |
| 1107 | − av_channel_layout_uninit(&ac->oc[i].ch_layout); | |
| 1108 | − | |
| 1109 | 1107 | AACUSACConfig *usac = &oc->usac; |
| 1110 | 1108 | for (int j = 0; j < usac->nb_elems; j++) { |
| 1111 | 1109 | AACUsacElemConfig *ec = &usac->elems[j]; |
| 1112 | 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 | 1116 | for (int type = 0; type < FF_ARRAY_ELEMS(ac->che); type++) { |