diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-08 20:55:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-08 20:55:42 +0100 |
| commit | 4360e6cb73b4d966a2d9a9aaa377d2f7d5291d8f (patch) | |
| tree | c11a6b684f19a0744d157ae57268efa33128c3ca /src/lib/config.cc | |
| parent | 3ad0c63d1838e227e097ed8538ce893645f0249f (diff) | |
Stop reading default video bit rate values from config.xml
We haven't written them back in a long time, and they will only take
effect for those updating from a very old version (and then, only until
the config is re-saved without the tags).
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index b4c632ae1..03c4bb72d 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -110,8 +110,6 @@ Config::set_defaults() _show_experimental_audio_processors = false; _language = optional<string>(); _default_still_length = 10; - _default_video_bit_rate[VideoEncoding::JPEG2000] = 150000000; - _default_video_bit_rate[VideoEncoding::MPEG2] = 5000000; _default_audio_delay = 0; _player_audio_delay = 0; _default_interop = false; @@ -375,12 +373,6 @@ try _dcp_j2k_comment = f.optional_string_child("DCPJ2KComment").get_value_or(""); _default_still_length = f.optional_number_child<int>("DefaultStillLength").get_value_or(10); - if (auto j2k = f.optional_number_child<int>("DefaultJ2KBandwidth")) { - _default_video_bit_rate[VideoEncoding::JPEG2000] = *j2k; - } else { - _default_video_bit_rate[VideoEncoding::JPEG2000] = f.optional_number_child<int64_t>("DefaultJ2KVideoBitRate").get_value_or(200000000); - } - _default_video_bit_rate[VideoEncoding::MPEG2] = f.optional_number_child<int64_t>("DefaultMPEG2VideoBitRate").get_value_or(5000000); _default_audio_delay = f.optional_number_child<int>("DefaultAudioDelay").get_value_or(0); _player_audio_delay = f.optional_number_child<int>("PlayerAudioDelay").get_value_or(0); _default_interop = f.optional_bool_child("DefaultInterop").get_value_or(false); |
