diff options
| author | msheby <msheby@cinecert.com> | 2008-02-01 00:42:18 +0000 |
|---|---|---|
| committer | msheby <> | 2008-02-01 00:42:18 +0000 |
| commit | 3e1ee0a500bd0b513db4bdf18a9cb052f42404d4 (patch) | |
| tree | 4788b1c75799823d902501c0b21f80d8ec2c59fb /src/AS_DCP_JP2K.cpp | |
| parent | bc0f567deda4c1f06d8910bc5ccd65ffc72b7b34 (diff) | |
Commit a bunch of portability fixes (64- vs. 32-bit types).
Diffstat (limited to 'src/AS_DCP_JP2K.cpp')
| -rwxr-xr-x | src/AS_DCP_JP2K.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AS_DCP_JP2K.cpp b/src/AS_DCP_JP2K.cpp index bd0bc33..39dceed 100755 --- a/src/AS_DCP_JP2K.cpp +++ b/src/AS_DCP_JP2K.cpp @@ -160,7 +160,8 @@ lh__Reader::MD_to_JP2K_PDesc(JP2K::PictureDescriptor& PDesc) MXF::RGBAEssenceDescriptor* PDescObj = (MXF::RGBAEssenceDescriptor*)m_EssenceDescriptor; PDesc.EditRate = m_EditRate; - PDesc.ContainerDuration = PDescObj->ContainerDuration; + assert(PDescObj->ContainerDuration <= 0xFFFFFFFFL); + PDesc.ContainerDuration = (ui32_t) PDescObj->ContainerDuration; PDesc.StoredWidth = PDescObj->StoredWidth; PDesc.StoredHeight = PDescObj->StoredHeight; PDesc.AspectRatio = PDescObj->AspectRatio; |
