|
From: <sv...@op...> - 2026-10-25 17:01:34
|
Author: sagamusix Date: Sun Oct 25 18:01:26 2026 New Revision: 25811 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=25811 Log: [Fix] WAV: It was possible that a fact chunk claimed an impossibly big sample length for an IMA ADPCM sample, causing unnecessarily large memory allocations. Modified: trunk/OpenMPT/soundlib/WAVTools.cpp Modified: trunk/OpenMPT/soundlib/WAVTools.cpp ============================================================================== --- trunk/OpenMPT/soundlib/WAVTools.cpp Sun Oct 25 11:03:10 2026 (r25810) +++ trunk/OpenMPT/soundlib/WAVTools.cpp Sun Oct 25 18:01:26 2026 (r25811) @@ -123,6 +123,7 @@ { sampleLength *= 2; } + LimitMax(sampleLength, expectedLengthFrames); } } |