X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_examiner.cc;h=6586a0d09bc5ad10ce09660a14d159ce5c695f6f;hb=8dabe7c3d815ff95c2fb3edc3cfce62434711fc4;hp=71f0ca41cab90db1d585c5fd2acf08218379e6d2;hpb=e31e8e2daf3c2f902a1187792c833025efd6913b;p=dcpomatic.git diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index 71f0ca41c..6586a0d09 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -26,12 +26,11 @@ #include "config.h" #include "cross.h" #include "compose.hpp" -#include "magick_image_proxy.h" +#include "ffmpeg_image_proxy.h" #include "image.h" #include #include #include -#include #include #include "i18n.h" @@ -46,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); @@ -57,18 +53,18 @@ ImageExaminer::ImageExaminer (shared_ptr film, shared_ptrsize (); - } catch (dcp::DCPReadError& e) { + } catch (dcp::ReadError& e) { delete[] buffer; throw DecodeError (String::compose (_("Could not decode JPEG2000 file %1 (%2)"), path, e.what ())); } delete[] buffer; } else { - MagickImageProxy proxy(content->path(0)); - _video_size = proxy.image().first->size(); + FFmpegImageProxy proxy(content->path(0)); + _video_size = proxy.image().image->size(); } if (content->still ()) {