X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsndfile_decoder.cc;h=602014d5883d2dba1381588bb44a7036debc9c96;hb=8d58a7c5f4320ad5c111e336c45e44d6b51ab509;hp=3a71fab528508ece0dfdf713356308b2e8af8cfa;hpb=79ce26d031d109177ba4b0f637fa2960345a37a3;p=dcpomatic.git diff --git a/src/lib/sndfile_decoder.cc b/src/lib/sndfile_decoder.cc index 3a71fab52..602014d58 100644 --- a/src/lib/sndfile_decoder.cc +++ b/src/lib/sndfile_decoder.cc @@ -25,7 +25,6 @@ #include #include "sndfile_content.h" #include "sndfile_decoder.h" -#include "film.h" #include "exceptions.h" #include "audio_buffers.h" @@ -37,9 +36,8 @@ using std::min; using std::cout; using boost::shared_ptr; -SndfileDecoder::SndfileDecoder (shared_ptr f, shared_ptr c) - : Decoder (f) - , AudioDecoder (f, c) +SndfileDecoder::SndfileDecoder (shared_ptr c) + : AudioDecoder (c) , _sndfile_content (c) , _deinterleave_buffer (0) { @@ -76,7 +74,7 @@ SndfileDecoder::pass () /* Do things in half second blocks as I think there may be limits to what FFmpeg (and in particular the resampler) can cope with. */ - sf_count_t const block = _sndfile_content->content_audio_frame_rate() / 2; + sf_count_t const block = _sndfile_content->audio_frame_rate() / 2; sf_count_t const this_time = min (block, _remaining); int const channels = _sndfile_content->audio_channels (); @@ -133,7 +131,6 @@ SndfileDecoder::audio_frame_rate () const void SndfileDecoder::seek (ContentTime t, bool accurate) { - Decoder::seek (t, accurate); AudioDecoder::seek (t, accurate); _done = t.frames (audio_frame_rate ());