mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-06 11:42:17 +01:00
Fix summary values for edge cases when overall signal does not straddle zero line.
This commit is contained in:
@@ -448,9 +448,10 @@ void *ODDecodeBlockFile::CalcSummary(samplePtr buffer, sampleCount len,
|
||||
}
|
||||
|
||||
for (i = sumLen; i < mSummaryInfo.frames256; i++) {
|
||||
summary256[i * 3] = 0.0f;
|
||||
summary256[i * 3 + 1] = 0.0f;
|
||||
summary256[i * 3 + 2] = 0.0f;
|
||||
// filling in the remaining bits with non-harming/contributing values
|
||||
summary256[i * 3] = FLT_MAX; // min
|
||||
summary256[i * 3 + 1] = -FLT_MAX; // max
|
||||
summary256[i * 3 + 2] = 0.0f; // rms
|
||||
}
|
||||
|
||||
// Recalc 64K summaries
|
||||
|
||||
Reference in New Issue
Block a user