diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-07 23:44:26 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-22 13:03:04 +0200 |
| commit | 0af59e8225eae1154e4844711012646681769b00 (patch) | |
| tree | 291311a5d29903e19bd1505f9c08f735f466f36b /src/lib/dcp_examiner.cc | |
| parent | 03a6be002b24e6cbb998d31a5cf4703de6196aa2 (diff) | |
Report video range from MPEG2 DCPs correctly.
Diffstat (limited to 'src/lib/dcp_examiner.cc')
| -rw-r--r-- | src/lib/dcp_examiner.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index 92491947c..229786868 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -164,6 +164,10 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant) } else if (_video_size.get() != asset->size ()) { throw DCPError (_("Mismatched video sizes in DCP")); } + + if (dynamic_pointer_cast<dcp::MPEG2PictureAsset>(asset)) { + _video_range = VideoRange::VIDEO; + } } } |
