diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 10:01:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 10:01:18 +0100 |
| commit | c7b68d663ac3db10dcf2bfcc11009dce46f820dc (patch) | |
| tree | b9d2a05b7f994dc841ce3895bc1cda50219bb390 /src/lib/dcp_examiner.cc | |
| parent | 53a18f3564b6dcd431e44b01ab2a505be135d2b7 (diff) | |
Decode DCP audio too.
Diffstat (limited to 'src/lib/dcp_examiner.cc')
| -rw-r--r-- | src/lib/dcp_examiner.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index 3051a4670..39bf2d098 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -81,6 +81,8 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) } else if (_audio_frame_rate.get() != mxf->sampling_rate ()) { throw DCPError (_("Mismatched audio frame rates in DCP")); } + + _audio_length += ContentTime::from_frames ((*i)->main_sound()->duration(), _video_frame_rate.get ()); } } } |
