std::shared_ptr
[dcpomatic.git] / src / lib / image_examiner.cc
index b9ef89865163e17e4622f04bfdb1b85d06cedef7..60dbd511be74bf6055506f57e9aeb1a8aaf14d48 100644 (file)
@@ -38,7 +38,7 @@
 using std::cout;
 using std::list;
 using std::sort;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 
 ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const ImageContent> content, shared_ptr<Job>)
@@ -63,8 +63,8 @@ ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const Imag
                }
                delete[] buffer;
        } else {
-               FFmpegImageProxy proxy(content->path(0));
-               _video_size = proxy.image().first->size();
+               FFmpegImageProxy proxy(content->path(0), content->video->range());
+               _video_size = proxy.image().image->size();
        }
 
        if (content->still ()) {