diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-19 23:27:34 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-19 23:27:34 +0200 |
| commit | fd198a9cb1f033773102f54603bd06b98f3c7fb1 (patch) | |
| tree | 29eb553140487ad3c841b2c4348c122438c918a9 /src/lib/ffmpeg_decoder.cc | |
| parent | 60d53efe2cb3bddf98ca3cba937247a8024e7d63 (diff) | |
Add and use Content::has_mapped_audio().
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index e0d9918b2..019e4f95c 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -89,7 +89,7 @@ FFmpegDecoder::FFmpegDecoder (shared_ptr<const Film> film, shared_ptr<const FFmp _pts_offset = {}; } - if (c->audio && !c->audio->mapping().mapped_output_channels().empty()) { + if (c->has_mapped_audio()) { audio = make_shared<AudioDecoder>(this, c->audio, fast); } |
