diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-17 15:03:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-17 15:03:15 +0200 |
| commit | 7f6cc5c6e151c32fce94181689cf740a011feafb (patch) | |
| tree | a9efd13ca943794c431c0ad9cc8d28a92a1442fe | |
| parent | afd18ea6b14373b2078b6d6dbc74c836e6843757 (diff) | |
Emit no audio from DCPs if none is mappedv2.16.85
This makes DCP content behave the same as FFmpeg.
| -rw-r--r-- | src/lib/dcp_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index 165b5bfb5..17f0e73b5 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -77,7 +77,7 @@ DCPDecoder::DCPDecoder (shared_ptr<const Film> film, shared_ptr<const DCPContent if (content->video) { video = make_shared<VideoDecoder>(this, content); } - if (content->audio) { + if (content->audio && !content->audio->mapping().mapped_output_channels().empty()) { audio = make_shared<AudioDecoder>(this, content->audio, fast); } for (auto i: content->text) { |
