Untested merge of master.
[dcpomatic.git] / src / lib / format.cc
index 8c3d0d8ad7f8f5eea541258032415c1b6cab12b7..a83d53ebd1aa3ba01a486c488cb35d90b3645e67 100644 (file)
@@ -29,6 +29,7 @@
 #include <iostream>
 #include "format.h"
 #include "film.h"
+#include "playlist.h"
 
 #include "i18n.h"
 
@@ -224,7 +225,7 @@ VariableFormat::VariableFormat (libdcp::Size dcp, string id, string n, string d)
 float
 VariableFormat::ratio (shared_ptr<const Film> f) const
 {
-       libdcp::Size const c = f->cropped_size (f->size ());
+       libdcp::Size const c = f->cropped_size (f->video_size ());
        return float (c.width) / c.height;
 }