maybe_set (_length, len, ContentProperty::LENGTH);
}
+void
+VideoContent::set_crop (Crop c)
+{
+ maybe_set (_crop, c, VideoContentProperty::CROP);
+}
+
void
VideoContent::set_left_crop (int c)
{
}
auto size = size_after_crop ();
- size.width *= _sample_aspect_ratio.get_value_or(1);
+ size.width = std::lrint(size.width * _sample_aspect_ratio.get_value_or(1));
/* This is what we will return unless there is any legacy stuff to take into account */
auto auto_size = fit_ratio_within (size.ratio(), film_container);