X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmid_side_decoder.cc;h=b9b8dd098c9459e2524de2633c36520632631956;hb=cbd2876db6b68e35cb6e7b111ce6b14180c4f97f;hp=8d5dc1875b76c2bf38e66181b206c588fecd0b84;hpb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;p=dcpomatic.git diff --git a/src/lib/mid_side_decoder.cc b/src/lib/mid_side_decoder.cc index 8d5dc1875..b9b8dd098 100644 --- a/src/lib/mid_side_decoder.cc +++ b/src/lib/mid_side_decoder.cc @@ -21,7 +21,6 @@ #include "mid_side_decoder.h" #include "audio_buffers.h" #include "audio_mapping.h" -#include #include "i18n.h" @@ -29,7 +28,6 @@ using std::string; using std::min; using std::vector; using boost::shared_ptr; -using boost::make_shared; string MidSideDecoder::name () const @@ -52,14 +50,14 @@ MidSideDecoder::out_channels () const shared_ptr MidSideDecoder::clone (int) const { - return make_shared (); + return shared_ptr (new MidSideDecoder ()); } shared_ptr MidSideDecoder::run (shared_ptr in, int channels) { int const N = min (channels, 3); - shared_ptr out = make_shared (channels, in->frames ()); + shared_ptr out (new AudioBuffers (channels, in->frames ())); for (int i = 0; i < in->frames(); ++i) { float const left = in->data()[0][i]; float const right = in->data()[1][i];