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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user