+ /* Stretch to fit the requested ratio */
+ size = fit_ratio_within (_ratio->ratio (), film_container, round);
+ } else if (_scale || video_size_after_crop.width > film_container.width || video_size_after_crop.height > film_container.height) {
+ /* Scale, preserving aspect ratio; this is either if we have been asked to scale with no stretch
+ or if the unscaled content is too big for film_container.
+ */
+ size = fit_ratio_within (video_size_after_crop.ratio(), film_container, round);
+ } else {
+ /* No stretch nor scale */
+ size = video_size_after_crop;