diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-12 20:52:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-12 20:52:15 +0100 |
| commit | 916247147468aee47354ebb3088f47b8a56fcccf (patch) | |
| tree | 90fb72f6312a8935bf61ec5affaf82f7bb8b88f6 /src/dcp.cc | |
| parent | bc09fbc79580f56c93e35de25230af18b30e0e1e (diff) | |
Don't crash with no audio; get video MXF information from the MXF itself; get sampling rate from audio MXF.for-dcptovideo
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -346,18 +346,17 @@ DCP::DCP (string directory) _directory, n, _fps, - _length, - cpl_assets->main_picture->screen_aspect_ratio.numerator, - cpl_assets->main_picture->screen_aspect_ratio.denominator + _length ) )); - n = cpl_assets->main_sound->annotation_text; - if (n.empty ()) { - n = pkl->asset_from_id(cpl_assets->main_sound->id)->original_file_name; - } - if (cpl_assets->main_sound) { + + n = cpl_assets->main_sound->annotation_text; + if (n.empty ()) { + n = pkl->asset_from_id(cpl_assets->main_sound->id)->original_file_name; + } + _assets.push_back (shared_ptr<SoundAsset> ( new SoundAsset ( _directory, |
