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)
commite83573fd8d232a0b6defe99ca4ee28c4cbef0ff8
tree8ade9f71736144922133738f3e5e37564c57581e
parent0c4eb22a7db267fb0b94d8248a6ffbed6b346f51
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