diff --git a/engine/client/m_mp3.c b/engine/client/m_mp3.c index 29e2faf5f..9f9664858 100644 --- a/engine/client/m_mp3.c +++ b/engine/client/m_mp3.c @@ -1603,7 +1603,8 @@ void Media_RecordFilm_f (void) recordavi_videotime = realtime; recordavi_audiotime = realtime; - captureaudiomem = BZ_Malloc(recordavi_wave_format.nSamplesPerSec*2); + if (recordavi_wave_format.nSamplesPerSec) + captureaudiomem = BZ_Malloc(recordavi_wave_format.nSamplesPerSec*2); capturevideomem = BZ_Malloc(glwidth*glheight*3); }