swaroop: don't put DCP conversions into a flat container.
authorCarl Hetherington <cth@carlh.net>
Mon, 22 Jul 2019 14:35:58 +0000 (15:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 22 Jul 2019 14:35:58 +0000 (15:35 +0100)
src/tools/dcpomatic_ecinema.cc

index 286d61f..96b633f 100644 (file)
@@ -29,6 +29,8 @@
 #include "lib/transcode_job.h"
 #include "lib/ffmpeg_encoder.h"
 #include "lib/signal_manager.h"
+#include "lib/video_content.h"
+#include "lib/ratio.h"
 #include <dcp/key.h>
 extern "C" {
 #include <libavformat/avformat.h>
@@ -292,6 +294,8 @@ convert_dcp (
        }
        DCPOMATIC_ASSERT (!jm->errors());
 
+       film->set_container (Ratio::nearest_from_ratio(dcp->video->size().ratio()));
+       
        string id = dcp::make_uuid ();
        dcp::Key key (AES_CTR_KEY_SIZE);