Merge master.
[dcpomatic.git] / src / lib / audio_decoder.cc
index 616abf8464c85d538ae0f0ee16d8db7adb0b0e92..9606c378c62d3babd09cf28c94b131c312aeaf39 100644 (file)
@@ -36,6 +36,7 @@ using boost::shared_ptr;
 
 AudioDecoder::AudioDecoder (shared_ptr<const AudioContent> content)
        : _audio_content (content)
+       , _decoded_audio (shared_ptr<AudioBuffers> (new AudioBuffers (content->audio_channels(), 0)), 0)
 {
        if (content->output_audio_frame_rate() != content->content_audio_frame_rate() && content->audio_channels ()) {
                _resampler.reset (new Resampler (content->content_audio_frame_rate(), content->output_audio_frame_rate(), content->audio_channels ()));