std::shared_ptr
[dcpomatic.git] / src / lib / audio_filter.cc
index 44345fc9d11f4e817865a402266d2b2bedff1b41..24aa244f2fe7bc2e18da7b5259f0a09e10b44d78 100644 (file)
 
 #include "audio_filter.h"
 #include "audio_buffers.h"
+#include "util.h"
 #include <cmath>
 
 using std::min;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** @return array of floats which the caller must destroy with delete[] */
 float *
@@ -105,7 +106,7 @@ AudioFilter::run (shared_ptr<const AudioBuffers> in)
 
        int const amount = min (in->frames(), _tail->frames());
        if (amount < _tail->frames ()) {
-               _tail->move (amount, 0, _tail->frames() - amount);
+               _tail->move (_tail->frames() - amount, amount, 0);
        }
        _tail->copy_from (in.get(), amount, in->frames() - amount, _tail->frames () - amount);