diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-15 00:35:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-15 00:47:36 +0100 |
| commit | 6ac0c8037f45306798993e743b70afdc62ff4a6b (patch) | |
| tree | 4ee412d3d2504ae332d59bd63b45429bb28ef04c /src/lib | |
| parent | e82c83b35e7638957f3d80b12d4c59c17436473a (diff) | |
Add failing test for #2364.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/audio_analyser.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/audio_analyser.cc b/src/lib/audio_analyser.cc index c9fc2118c..e4dfc6bde 100644 --- a/src/lib/audio_analyser.cc +++ b/src/lib/audio_analyser.cc @@ -138,6 +138,11 @@ AudioAnalyser::analyse (shared_ptr<AudioBuffers> b, DCPTime time) { LOG_DEBUG_AUDIO_ANALYSIS("Received %1 frames at %2", b->frames(), to_string(time)); DCPOMATIC_ASSERT (time >= _start); + /* In bug #2364 we had a lot of frames arriving here (~47s worth) which + * caused an OOM error on Windows. Check for the number of frames being + * reasonable here to make sure we catch this if it happens again. + */ + DCPOMATIC_ASSERT(b->frames() < 480000); #ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG if (Config::instance()->analyse_ebur128 ()) { |
