Fix glitchness at the start by not seeking to -ve times.
[dcpomatic.git] / src / lib / resampler.cc
index ebb507cb124fd8ca68e93b813480aec581c209d2..565fb69c29b127240b956b64e75f744bce5df8e9 100644 (file)
@@ -1,3 +1,22 @@
+/*
+    Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
 extern "C" {
 #include "libavutil/channel_layout.h"
 }      
@@ -7,6 +26,7 @@ extern "C" {
 
 #include "i18n.h"
 
+using std::cout;
 using boost::shared_ptr;
 
 Resampler::Resampler (int in, int out, int channels)
@@ -60,6 +80,7 @@ Resampler::run (shared_ptr<const AudioBuffers> in)
        return resampled;
 }      
 
+/* XXX: no-one calls this */
 shared_ptr<const AudioBuffers>
 Resampler::flush ()
 {