Don't reduce the audio channel count on adding ATMOS (only increase it, if required).
authorCarl Hetherington <cth@carlh.net>
Wed, 29 Nov 2023 01:26:07 +0000 (02:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 29 Nov 2023 21:50:56 +0000 (22:50 +0100)
src/lib/film.cc

index 7ba245422a94329c0e54788d075101db2687f86c..a5b393cc126a2a08cc58d7709b159f761fa8e8bc 100644 (file)
@@ -1400,7 +1400,9 @@ Film::add_content (shared_ptr<Content> c)
 
        maybe_set_container_and_resolution ();
        if (c->atmos) {
-               set_audio_channels (14);
+               if (_audio_channels < 14) {
+                       set_audio_channels(14);
+               }
                set_interop (false);
        }
 }