audiointerleave: don't overflow channel map with >64 channels
authorDouglas Bagnall <douglas@halo.gen.nz>
Fri, 31 Mar 2017 10:40:05 +0000 (23:40 +1300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 31 Mar 2017 11:11:56 +0000 (14:11 +0300)
commit974cbfb3c49961eb3812fbfde663c7b5427f1ba5
tree4673da9c596b9b8ac6e7973a73c620b4591f0d6b
parent20ced51df28f43640704ce122b129b3c6bfd29ca
audiointerleave: don't overflow channel map with >64 channels

When there are more than 64 channels, we don't want to exceed the
bounds of the ordering_map buffer, and in these cases we don't want to
remap at all. Here we avoid doing that.

Based on a patch originally for plugins-good/interleave in
https://bugzilla.gnome.org/show_bug.cgi?id=780331
gst/audiomixer/gstaudiointerleave.c