X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fencoder.cc;h=d3181acd9b1f7df35f0224a96be318b6203f5f1d;hb=89115db77729a2c99f1a09ff6a461720e16f889e;hp=4dff19ea6dbd8bc93f0fd7573c77cc206e6768e5;hpb=11d0d8d07917543d6c40a6bb1fe5581ae216f5aa;p=dcpomatic.git diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index 4dff19ea6..d3181acd9 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -40,6 +40,7 @@ using std::stringstream; using std::vector; using std::list; using std::cout; +using std::min; using std::make_pair; using boost::shared_ptr; using boost::optional; @@ -47,7 +48,7 @@ using boost::optional; int const Encoder::_history_size = 25; /** @param f Film that we are encoding */ -Encoder::Encoder (shared_ptr f, shared_ptr j) +Encoder::Encoder (shared_ptr f, shared_ptr j) : _film (f) , _job (j) , _video_frames_out (0) @@ -169,7 +170,7 @@ Encoder::frame_done () } void -Encoder::process_video (shared_ptr image, bool same, Time) +Encoder::process_video (shared_ptr image, bool same) { boost::mutex::scoped_lock lock (_mutex); @@ -215,7 +216,7 @@ Encoder::process_video (shared_ptr image, bool same, Time) } void -Encoder::process_audio (shared_ptr data, Time) +Encoder::process_audio (shared_ptr data) { _writer->write (data); }