Fix crashes when using templates in some cases (#2491).
authorCarl Hetherington <cth@carlh.net>
Wed, 22 Mar 2023 23:29:40 +0000 (00:29 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 23 Mar 2023 15:51:38 +0000 (16:51 +0100)
commitf4fda1d705adfca0b7c8d3748c0c9df8e9da51bc
tree583d0b6170b6aed83ef8d9577307cd6655480143
parente7d8a70a16f972de2861bb1464dec6df3d26c579
Fix crashes when using templates in some cases (#2491).

If a template had content with N audio channels there would be various
problems if content with <N channels was subsequently added.
src/lib/audio_content.cc
test/data
test/template_test.cc [new file with mode: 0644]
test/wscript