Fix crash when previewing projects with fewer than 6 audio channels;
authorCarl Hetherington <cth@carlh.net>
Thu, 4 Jun 2020 22:07:29 +0000 (00:07 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Jun 2020 22:07:29 +0000 (00:07 +0200)
commit7904ba56bba3a107087546b09139b60544f5c272
tree6edf41e35940378653822f1b7283b7616a064f24
parentebce2111f20e6b9cbd00ce8ec7e72c68cf176c29
Fix crash when previewing projects with fewer than 6 audio channels;
the old code tried to copy audio just because its channel had a non-0
value in the map without checking whether the destination channel
actually existed.
src/lib/util.cc