mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
Make the last travis-friendly
This commit is contained in:
parent
407c1dc4b2
commit
b5f2046286
@ -416,8 +416,8 @@ int PCMImportFileHandle::Import(TrackFactory *trackFactory,
|
|||||||
// samples in the tracks.
|
// samples in the tracks.
|
||||||
|
|
||||||
// PRL: guard against excessive memory buffer allocation in case of many channels
|
// PRL: guard against excessive memory buffer allocation in case of many channels
|
||||||
__int64 maxBlock = std::min(maxBlockSize,
|
sampleCount maxBlock = std::min(maxBlockSize,
|
||||||
__int64(std::numeric_limits<int>::max() /
|
sampleCount(std::numeric_limits<int>::max() /
|
||||||
(mInfo.channels * SAMPLE_SIZE(mFormat)))
|
(mInfo.channels * SAMPLE_SIZE(mFormat)))
|
||||||
);
|
);
|
||||||
if (maxBlock < 1)
|
if (maxBlock < 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user