Add VideoContent::rotate_size().
[dcpomatic.git] / src / lib / video_content.cc
index 91ed1185588d181056d76a8fd78ea11ffaefa8c5..6c027ff114ceaae500adbb3d2c340f94753a2d37 100644 (file)
@@ -722,3 +722,12 @@ VideoContent::actual_crop () const
        );
 }
 
+
+void
+VideoContent::rotate_size()
+{
+       if (_size) {
+               std::swap(_size->width, _size->height);
+       }
+}
+