diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-08 18:46:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-12 21:02:01 +0100 |
| commit | a680098a14cf40172370fde12c86691b82a36051 (patch) | |
| tree | c4cb35db18d91c84e8df2ec0bbe369200c2a235b /src/lib/atmos_mxf_decoder.cc | |
| parent | 52ee81ba2d1091f712806c0c4edeef67c455884f (diff) | |
Support re-use of Atmos MXF assets.
Diffstat (limited to 'src/lib/atmos_mxf_decoder.cc')
| -rw-r--r-- | src/lib/atmos_mxf_decoder.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/atmos_mxf_decoder.cc b/src/lib/atmos_mxf_decoder.cc index 19a19a8c4..b6111eaf2 100644 --- a/src/lib/atmos_mxf_decoder.cc +++ b/src/lib/atmos_mxf_decoder.cc @@ -42,12 +42,17 @@ AtmosMXFDecoder::AtmosMXFDecoder (std::shared_ptr<const Film> film, std::shared_ _reader = asset->start_read (); _reader->set_check_hmac (false); _metadata = AtmosMetadata (asset); + _can_reuse = content->can_reuse(film); } bool AtmosMXFDecoder::pass () { + if (!_decode_reusable && _can_reuse) { + return true; + } + auto const vfr = _content->active_video_frame_rate (film()); auto const frame = _next.frames_round (vfr); |
