fdkaacdec: Support up to 5 rear channels
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Thu, 25 May 2023 15:02:24 +0000 (17:02 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 30 May 2023 15:31:22 +0000 (16:31 +0100)
commitcf05285b612c862f4015a28575e68b7c63f7c2f2
treea2715373d16da8f62dbb5218ac3ebe5feac89a56
parent3003f466ef3a6b20742c1a27c6b98e2efc742d4b
fdkaacdec: Support up to 5 rear channels

The `switch (n_rear)` supports up to 5 rear channels, but our channel
set only had space for 3. Size the set properly to fix this.

This didn't actually cause any memory unsafety as `PUSH_CHAN` would stop
incrementing `n_rear` if the channel set is already full.

Thanks to @alatiera for noticing this.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4740>
subprojects/gst-plugins-bad/ext/fdkaac/gstfdkaacdec.c