From ae5d6b702af178452f84b85dfa13b62be577e3f5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 8 Feb 2026 20:57:54 +0100 Subject: Don't respect template maximum video rate if the configured maximum is lower. Otherwise the GUI shows the lower rate but the Film contains the higher one. Since the recent change to stop the maximum bit rates being set below the standard maximum this should only happen if the user has configured a non-standard rate and then made a template with a yet higher rate. --- src/lib/film.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/film.cc b/src/lib/film.cc index fbeca53fa..f65e34368 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -2175,7 +2175,7 @@ Film::use_template(optional name) _container = _template_film->_container; _resolution = _template_film->_resolution; for (auto encoding: { VideoEncoding::JPEG2000, VideoEncoding::MPEG2 }) { - _video_bit_rate[encoding] = _template_film->_video_bit_rate[encoding]; + _video_bit_rate[encoding] = std::min(_template_film->_video_bit_rate[encoding], Config::instance()->maximum_video_bit_rate(encoding)); } _video_frame_rate = _template_film->_video_frame_rate; _encrypt_picture = _template_film->_encrypt_picture; -- cgit v1.2.3