summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-29 22:34:51 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-29 22:34:53 +0200
commit4401895dfbb25834d4385621824e72ae19c8962c (patch)
treed55dbce4321bafd221129119b02c41b367977057
parent1542a9512ba7bd0c99105839741f4e0b41bd8e67 (diff)
Fix silent stereo mixdown exports when the project audio channel count is > 6.
This became much more of a problem when we started defaulting to 8 channels in projects.
-rw-r--r--src/lib/ffmpeg_encoder.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc
index 60241b233..c1170f098 100644
--- a/src/lib/ffmpeg_encoder.cc
+++ b/src/lib/ffmpeg_encoder.cc
@@ -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;
}