mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 22:21:13 +00:00
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/4712>
This commit is contained in:
parent
d68a7fbd94
commit
4008b872bb
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ gst_fdkaacdec_map_channels (GstFdkAacDec * self, const CStreamInfo * in,
|
||||||
|
|
||||||
DEF_CHANSET (front, 7);
|
DEF_CHANSET (front, 7);
|
||||||
DEF_CHANSET (side, 2);
|
DEF_CHANSET (side, 2);
|
||||||
DEF_CHANSET (rear, 3);
|
DEF_CHANSET (rear, 5);
|
||||||
DEF_CHANSET (lfe, 2);
|
DEF_CHANSET (lfe, 2);
|
||||||
DEF_CHANSET (top_front, 3);
|
DEF_CHANSET (top_front, 3);
|
||||||
DEF_CHANSET (top_center, 3);
|
DEF_CHANSET (top_center, 3);
|
||||||
|
|
Loading…
Reference in a new issue