Fix encoding, perhaps.
[dcpomatic.git] / src / lib / writer.cc
index dc552e6cbcfb08512500ce61c6047121f6104843..fc6fb83d4d5d631779355d110f2bbdcbae1fc61a 100644 (file)
@@ -764,7 +764,8 @@ void
 Writer::set_encoder_threads (int threads)
 {
        boost::mutex::scoped_lock lm (_state_mutex);
-       _maximum_frames_in_memory = lrint (threads * Config::instance()->frames_in_memory_multiplier());
+       /* XXX: add some to cope with the FV encoder returning lots */
+       _maximum_frames_in_memory = lrint (threads * Config::instance()->frames_in_memory_multiplier()) + 32;
        _maximum_queue_size = threads * 16;
 }