diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-30 15:15:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-30 15:15:10 +0200 |
| commit | 22d9015d4788bca8da7113ad187f0b04cfbc4216 (patch) | |
| tree | e7b8cd1dd19bfb0ea7eef937168cdd2aea29b454 /test/test.cc | |
| parent | 63a81274aa1423ebb593cad9dfe0501853e1c1c5 (diff) | |
Fix some warnings raised by the macOS compiler.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index 42619683..42e30303 100644 --- a/test/test.cc +++ b/test/test.cc @@ -315,14 +315,14 @@ simple_sound(boost::filesystem::path path, string suffix, dcp::MXFMetadata mxf_m int const samples_per_frame = sample_rate / 24; - float* silence[channels]; + vector<float*> silence(channels); for (auto i = 0; i < channels; ++i) { silence[i] = new float[samples_per_frame]; memset (silence[i], 0, samples_per_frame * sizeof(float)); } for (auto i = 0; i < frames; ++i) { - sound_writer->write(silence, channels, samples_per_frame); + sound_writer->write(silence.data(), channels, samples_per_frame); } sound_writer->finalize (); |
