Re-work again so that there's just one encoder; various tweaks to still-image-with...
[dcpomatic.git] / src / lib / ab_transcode_job.cc
index da9ce7933cfe39cd9f3dc46b860a20fc95fbcb09..a6233c185783d42055be316361ff4e4713c76a3a 100644 (file)
@@ -23,8 +23,8 @@
 #include "format.h"
 #include "filter.h"
 #include "ab_transcoder.h"
-#include "encoder_factory.h"
 #include "config.h"
+#include "encoder.h"
 
 using std::string;
 using boost::shared_ptr;
@@ -53,7 +53,7 @@ ABTranscodeJob::run ()
 {
        try {
                /* _film_b is the one with reference filters */
-               ABTranscoder w (_film_b, _film, _decode_opt, this, encoder_factory (_film, _encode_opt));
+               ABTranscoder w (_film_b, _film, _decode_opt, this, shared_ptr<Encoder> (new Encoder (_film, _encode_opt)));
                w.go ();
                set_progress (1);
                set_state (FINISHED_OK);