Fix silent stereo mixdown exports when the project audio channel count is > 6.
authorCarl Hetherington <cth@carlh.net>
Mon, 29 Apr 2024 20:34:51 +0000 (22:34 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 29 Apr 2024 20:34:53 +0000 (22:34 +0200)
This became much more of a problem when we started defaulting to 8 channels
in projects.

src/lib/ffmpeg_encoder.cc

index 60241b23319f3816b265a5b3beacebb07d4ee62b..c1170f098ce8b416cacd1ab1562e4d99cd4a1fd7 100644 (file)
@@ -102,7 +102,7 @@ FFmpegEncoder::stereo_map() const
                map.set(dcp::Channel::CENTRE, 1, overall_gain * minus_3dB);
                map.set(dcp::Channel::LS,     0, overall_gain);
                break;
-       case 6:
+       default:
                map.set(dcp::Channel::LEFT,   0, overall_gain);
                map.set(dcp::Channel::RIGHT,  1, overall_gain);
                map.set(dcp::Channel::CENTRE, 0, overall_gain * minus_3dB);
@@ -111,7 +111,6 @@ FFmpegEncoder::stereo_map() const
                map.set(dcp::Channel::RS,     1, overall_gain);
                break;
        }
-       /* XXX: maybe we should do something better for >6 channel DCPs */
        return map;
 }