Numerous fixes to A/B mode so that at least it doesn't crash (#72).
[dcpomatic.git] / src / lib / transcoder.cc
index 959fac8572f55d5593fdd04b0f878bb99200c54f..e0f3a03a2319c02de63918a6201647c48fe478cc 100644 (file)
@@ -38,7 +38,6 @@
 #include "audio_decoder.h"
 
 using std::string;
-using std::cout;
 using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 
@@ -57,7 +56,7 @@ Transcoder::Transcoder (shared_ptr<Film> f, DecodeOptions o, Job* j, shared_ptr<
 
        if (f->audio_stream()) {
                shared_ptr<AudioStream> st = f->audio_stream();
-               _matcher.reset (new Matcher (f->log(), st->sample_rate(), f->frames_per_second()));
+               _matcher.reset (new Matcher (f->log(), st->sample_rate(), f->source_frame_rate()));
                _delay_line.reset (new DelayLine (f->log(), st->channels(), f->audio_delay() * st->sample_rate() / 1000));
                _gain.reset (new Gain (f->log(), f->audio_gain()));
        }