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