X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_examiner.cc;h=de7e9539976c08ff94c7dae4c567b625adb92197;hb=a5095486e606adfe36de635a48710cf98872c1c6;hp=1e4cc899df96df614fd6a9b1413d3101245247a4;hpb=22b9f3b2090d8bdfe52cda1e69d3acbe874f1ce5;p=dcpomatic.git diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index 1e4cc899d..de7e95399 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -17,6 +17,11 @@ */ +#include "dcp_examiner.h" +#include "dcp_content.h" +#include "exceptions.h" +#include "image.h" +#include "config.h" #include #include #include @@ -27,11 +32,6 @@ #include #include #include -#include "dcp_examiner.h" -#include "dcp_content.h" -#include "exceptions.h" -#include "image.h" -#include "config.h" #include "i18n.h" @@ -117,12 +117,12 @@ DCPExaminer::DCPExaminer (shared_ptr content) shared_ptr mono = dynamic_pointer_cast (mxf); shared_ptr stereo = dynamic_pointer_cast (mxf); - shared_ptr image (new Image (PIX_FMT_RGB24, _video_size.get(), false)); + shared_ptr image (new Image (PIX_FMT_RGB48LE, _video_size.get(), false)); if (mono) { - mono->get_frame(0)->rgb_frame (image->data()[0]); + mono->get_frame(0)->rgb_frame (reinterpret_cast (image->data()[0])); } else { - stereo->get_frame(0)->rgb_frame (dcp::EYE_LEFT, image->data()[0]); + stereo->get_frame(0)->rgb_frame (dcp::EYE_LEFT, reinterpret_cast (image->data()[0])); } }