diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-22 01:19:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-22 01:19:33 +0100 |
| commit | 129d868fb0bd10b18da0663911117d68ff90bf97 (patch) | |
| tree | f613643248269ef36c7821603c19847e6e9a47c3 /src/lib/dcp_decoder.cc | |
| parent | c5fe4e83db7a6fa7263e0d67804fd5a5569bf00a (diff) | |
| parent | 5e9e59e044fe3b51352d5dccad7f11882c6a571c (diff) | |
Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
Diffstat (limited to 'src/lib/dcp_decoder.cc')
| -rw-r--r-- | src/lib/dcp_decoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index e7e88d319..c17b21a7f 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -116,9 +116,10 @@ DCPDecoder::pass (PassReason reason, bool) int const channels = _dcp_content->audio->stream()->channels (); int const frames = sf->size() / (3 * channels); shared_ptr<AudioBuffers> data (new AudioBuffers (channels, frames)); + float** data_data = data->data(); for (int i = 0; i < frames; ++i) { for (int j = 0; j < channels; ++j) { - data->data()[j][i] = static_cast<int> ((from[0] << 8) | (from[1] << 16) | (from[2] << 24)) / static_cast<float> (INT_MAX - 256); + data_data[j][i] = static_cast<int> ((from[0] << 8) | (from[1] << 16) | (from[2] << 24)) / static_cast<float> (INT_MAX - 256); from += 3; } } |
