X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_examiner.cc;h=775a69eebac4779b69226f7a8f408f9ad19d43c2;hb=c403e757cf0b029954fe18dc969314bfb179412f;hp=69becafdd7566c18ea8e384edef8c74fdf7eb8ca;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index 69becafdd..775a69eeb 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -26,10 +26,11 @@ #include "config.h" #include "cross.h" #include "compose.hpp" +#include "ffmpeg_image_proxy.h" +#include "image.h" #include #include #include -#include #include #include "i18n.h" @@ -44,9 +45,6 @@ ImageExaminer::ImageExaminer (shared_ptr film, shared_ptrpath(0).string (); if (valid_j2k_file (path)) { boost::uintmax_t size = boost::filesystem::file_size (path); @@ -55,7 +53,7 @@ ImageExaminer::ImageExaminer (shared_ptr film, shared_ptrsize (); @@ -65,9 +63,8 @@ ImageExaminer::ImageExaminer (shared_ptr film, shared_ptrpath(0).string()); - _video_size = dcp::Size (image->columns(), image->rows()); - delete image; + FFmpegImageProxy proxy(content->path(0)); + _video_size = proxy.image().first->size(); } if (content->still ()) {