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/Wav.cpp | |
| parent | bc0f567deda4c1f06d8910bc5ccd65ffc72b7b34 (diff) | |
Commit a bunch of portability fixes (64- vs. 32-bit types).
Diffstat (limited to 'src/Wav.cpp')
| -rwxr-xr-x | src/Wav.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wav.cpp b/src/Wav.cpp index 2cfd73f..9fb2423 100755 --- a/src/Wav.cpp +++ b/src/Wav.cpp @@ -265,7 +265,7 @@ ASDCP::AIFF::SimpleAIFFHeader::FillADesc(ASDCP::PCM::AudioDescriptor& ADesc, ASD ADesc.AudioSamplingRate = extended_to_Rat(sampleRate); ADesc.QuantizationBits = sampleSize; ADesc.BlockAlign = sampleSize / 8; - ADesc.AvgBps = ADesc.BlockAlign * ADesc.AudioSamplingRate.Quotient(); + ADesc.AvgBps = (ui32_t) (ADesc.BlockAlign * ADesc.AudioSamplingRate.Quotient()); ui32_t FrameBufferSize = ASDCP::PCM::CalcFrameBufferSize(ADesc); ADesc.ContainerDuration = data_len / FrameBufferSize; } |
