1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 00:51:12 +02:00

Bug 938 - Audio longer than 2^31 sample is visually corrupted.

Seems to have been an overflow in GetWaveDisplay().
This commit is contained in:
James Crook
2015-05-10 20:17:30 +01:00
parent ccc71c31b6
commit 16fe9af314

View File

@@ -1312,8 +1312,8 @@ bool Sequence::GetWaveDisplay(float *min, float *max, float *rms, int* bl,
sampleCount nextSrcX = 0;
int lastRmsDenom = 0;
int lastDivisor = 0;
int whereNow = std::min(s1 - 1, where[0]);
int whereNext = 0;
sampleCount whereNow = std::min(s1 - 1, where[0]);
sampleCount whereNext = 0;
// Loop over block files, opening and reading and closing each
// not more than once
unsigned nBlocks = mBlock->GetCount();