X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_content.cc;h=6c3f23a5702ebd2735936c914b204bc8c366bfc4;hb=2b0e9dd97a5773f52eba5704903b82e90f4c6f63;hp=c10a94f43f372a4ca184ab4edddcf8577367de58;hpb=5799460dc38bafa1da1ce9f7bf43621d3fadf442;p=dcpomatic.git diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index c10a94f43..6c3f23a57 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -623,6 +623,7 @@ VideoContent::take_settings_from (shared_ptr c) set_fade_in (c->_fade_in); set_fade_out (c->_fade_out); set_burnt_subtitle_language (c->_burnt_subtitle_language); + set_range(c->_range); } @@ -650,7 +651,10 @@ VideoContent::scaled_size (dcp::Size film_container) } if (_custom_size) { - return *_custom_size; + if (_custom_size->width <= film_container.width && _custom_size->height <= film_container.height) { + return *_custom_size; + } + return fit_ratio_within(_custom_size->ratio(), film_container); } auto size = size_after_crop ();